I have been grappling with the best way to run a backup that has 4 different drives we rotate daily. The backup looks for a file on the destination backup drive, using a Bash if-then-else logic check. If the corresponding backup file doesn’t exist, the script doesn’t run the backup script and simply exits. If the file exists, the Duplicati backup script runs and an email report is generated.
For example, I have 4 backup disks. In the root of each disk, contains the file “backup(1-4)”. On each disk is written “backup(1-4)”. Every day, the next backup disk 1, 2, 3 or 4 is inserted. The script checks for the file and, if it exists, runs the correct backup. That way, we don’t get missing database errors.
I WAS doing this through the Duplicati web interface, but decided to start sending myself log reports. The problem is, it sends the log reports for all the backups, including the 3 that were not run, because their media was not present. This report is an error report and doesn’t need to be sent.
The only issue is, if I run the backup from the command line that the web interface provides, it doesn’t update the web interface, as far as showing when the last successful backup took place. Is there a way to make it update the web interface, as well?