rsbackup 8.0 | pre-volume-hook / post-volume-hook is executed even if there is no backup necessary
Richard Kettlewell
rjk at terraraq.uk
Tue Aug 29 21:18:27 BST 2023
On 29/08/2023 10:41, Samuel Wolf wrote:
> I configure the script per host in the volume:
>
> host srv01
> volume SQL_BACKUP /mnt/srv01/SQL_BACKUP
> pre-volume-hook /etc/rsbackup/scripts/pre-srv01.sh
>
> This should only be execute on backup, right?
>
> But for some reason it execute *once* again in the morning and then
> only in the next night for backup (as expected).
> This is why I think the --prune job start it.
>
> Debian 12.1
> rsbackup 8.0-1
>
> /etc/crontab
> 4 0 * * * root rsbackup --backup
>
> /etc/rsbackup/defaults
> backup=daily
> prune=daily
Assuming you also have the cronjobs from the Debian package, you have a
line in /etc/crontab asking for a daily backup, and line in
/etc/rsbackup/defaults asking for rsbackup.cron to do a daily backup.
So, two attempts at a backup per day in total.
ttfn/rjk
More information about the sgo-software-discuss
mailing list