digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.71k stars 123 forks source link

Double daily backups sometimes... #577

Closed DrTron closed 10 months ago

DrTron commented 11 months ago

All, I'm using btrbk at the end of my "regular" backup scripts to create additional backups on a different btrfs disk. My btrbk.con has preserve_hour_of_day 0 set and btrbk runs once a day around 00:30.

Sometimes, but not always, and not on every backed-up directory, I get duplicate backups for a day:

backup.20231218
backup.20231219
backup.20231219_1
backup.20231220
backup.20231221
backup.20231222
backup.20231223
backup.20231223_1
backup.20231224
backup.20231225
backup.20231225_1

Does the preserve_hour_of_day 0 have anything to do with it because I'm running the backups on the "0" hour?

Thanks!

DrTron commented 10 months ago

In case anyone sees this and has the same problem: I found that btrbk when installed with a package manager creates a systemd file and a systemd timer that runs btrbk daily shortly after midnight. Not sure why I didn't get duplicates every day, but disabling that got rid of the duplicate snapshots/backups.