OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Daily backup configuration on Google Drive
« previous next »
  • Print
Pages: [1]

Author Topic: Daily backup configuration on Google Drive  (Read 21101 times)

Rayman

  • Newbie
  • *
  • Posts: 31
  • Karma: 2
    • View Profile
Daily backup configuration on Google Drive
« on: August 16, 2017, 08:27:42 pm »
Hi,

I have setup configuration backup on Google Drive. If I press save it backups to Google Drive fine.

I'm wondering if I can save the backups on a daily basis automatically. If yes, how?

Thanks,
Ray
Logged

dpbklyn

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #1 on: October 02, 2017, 08:34:15 pm »
Maybe not daily, but this would be useful...Is it possible to set up a cron job to get this done?
Logged

rabievdm

  • Newbie
  • *
  • Posts: 30
  • Karma: 2
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #2 on: October 04, 2017, 12:40:07 pm »
Actually to be able to have scheduled backups to other media would be useful as well eg SCP/SFTP
Logged

Olodin

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #3 on: October 04, 2017, 04:56:50 pm »
Hi,
I'm using rsync over ssh to copy opnsense configuration from /conf to another host.

Just dropped a shell script to opnsense:/usr/local/etc/periodic/daily

Code: [Select]
#!/bin/sh
PATH=$PATH:/usr/local/bin:/usr/local/sbin
export PATH

/usr/local/bin/rsync -av /conf server:/backups/opnsense

You may need to install rsync via pkg add rsync and setup puplic-key authentication for user root.
Logged

lysol

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #4 on: July 10, 2018, 03:59:56 pm »
Also interested in a scheduling feature. My google drive backup is working fine, but I still have to do it manually.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #5 on: July 11, 2018, 04:25:46 pm »
Sure, this is easy:

https://github.com/opnsense/core/commit/9ca729b2

It allows to set a "Remote backup" cron job via the GUI. I'll add it to 18.1.12.


Cheers,
Franco
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Daily backup configuration on Google Drive
« Reply #6 on: July 11, 2018, 09:09:12 pm »
(Off-Topic) The same is valid for Nextcloud - just a different name.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Daily backup configuration on Google Drive
« Reply #7 on: July 11, 2018, 10:17:03 pm »
Yep, it works for all enabled backup methods. :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Daily backup configuration on Google Drive
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2