OPNsense Forum
Archive => 17.7 Legacy Series => Topic started by: Rayman 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
-
Maybe not daily, but this would be useful...Is it possible to set up a cron job to get this done?
-
Actually to be able to have scheduled backups to other media would be useful as well eg SCP/SFTP
-
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
#!/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.
-
Also interested in a scheduling feature. My google drive backup is working fine, but I still have to do it manually.
-
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
-
(Off-Topic) The same is valid for Nextcloud - just a different name.
-
Yep, it works for all enabled backup methods. :)