Hi, I was wondering if there is a way to set up an alternate backup location in case the default one is not present (like an external hard drive).
For instance, I would like to set it up so that it first checks if the ftp site is available so I can do an online backup. If that was not available (not connected to the internet), I want to be able to backup to an external hard drive that I have. If that still doesn't work, I'd like to backup to a special partition on my internal hard drive.
Is there any way to do this using sbackup?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I was wondering if there is a way to set up an alternate backup location in case the default one is not present (like an external hard drive).
For instance, I would like to set it up so that it first checks if the ftp site is available so I can do an online backup. If that was not available (not connected to the internet), I want to be able to backup to an external hard drive that I have. If that still doesn't work, I'd like to backup to a special partition on my internal hard drive.
Is there any way to do this using sbackup?
Thanks
THis can be done with bash scripting using sbackupd command-line arguments, like this:
if -x /first/backup/dir; do sbackupd --config=/etc/sbackup.first.conf; elif; do sbackupd --config=/etc/sbackup.second.conf; fi
(I do not remember bash syntax at the moment, but you get the idea)