under “Client” to keep for example 7 days worth of backup history? Or second example: to keep 1 backup (for the previous day) and override it the next day?
Next question: Is there a way to disable the default Bacula backup job on a per-site basis? I personally host a few sites which are only for storage-related purposes (ex. NextCloud) and having backup of that would fill the disks really really quickly.
After writing this whole thread, seems like I will just go with the snapshots feature for manual backups and forget it… but I’ll post it anyway in case anyone ever has similar questions.
Wonder, is it possible to configure automatic nightly snapshot on a per-account basis? Do the snapshots include MySQL databases or in case of failure after restoring the snapshot, user needs to restore MySQL separately from the mysql_backups directory under his account?
10 file retention, 7 job. This is for calculating incremental and differential backups. Schedules and Retentions may be of use to further explore this topic.
Edit /etc/bacula/conf.d/fileset.conf. Within “Include { … }”, add:
Exclude Dir Containing = .backup-exclude
Restart directory, systemctl restart bacula-dir. Any directory which has a file named “.backup-exclude” will be pruned from future backups.
Databases > MySQL Backups to disenroll a database from automatic backups. Backups can be reconfigured to occur right before Bacula, see “Triggering dump before backup”. From my experience, it’s best to leave this enabled because this is your sole defense from accidentally trashing a database. Backing up raw data in /var/lib/mysql is unreliable.
Bacula will take a backup of the user’s home directory which includes these database backups. UI will look for databases within this directory when attempting to restore under Databases > MySQL Manager > List Users and Databases.
but this causes bacula-dir unable to be restarted:
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: bacula-dir: ERROR TERMINATION at inc_conf.c:754
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: Config error: Keyword ExcludeDirContaining not permitted in this resource
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: : line 43, col 29 of file /etc/bacula/conf.d/fileset.conf
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: Exclude Dir Containing = .backup-exclude
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: 02-Jun 00:27 bacula-dir: ERROR TERMINATION at inc_conf.c:754
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: Config error: Keyword ExcludeDirContaining not permitted in this resource
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: : line 43, col 29 of file /etc/bacula/conf.d/fileset.conf
Jun 02 00:27:34 hbox1.callplace.net bacula-dir[290553]: Exclude Dir Containing = .backup-exclude
Jun 02 00:27:34 hbox1.callplace.net systemd[1]: bacula-dir.service: Main process exited, code=exited, status=1/FAILURE
Jun 02 00:27:34 hbox1.callplace.net systemd[1]: bacula-dir.service: Failed with result 'exit-code'.
Should the line be placed elsewhere or I misunderstood something?