digint / btrbk

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

Will running multiple btrbk configs simultaneously cause conflicts? #437

Closed bdaase closed 2 years ago

bdaase commented 2 years ago

I would like to have the following setup:

Therefore, I would create two systemd timers and services (a daily one triggering at 10am every day and a weekly one triggering at 10am every Sunday). The daily service is executing btrbk -c btrbk-local.conf run and the weekly one is executing btrbk -c btrbk-remote.conf run).

However, when it's 10am on a Sunday then, both of the configs would try to simultaneously create a snapshot. Would that be a problem? If yes, what would be the best workaround?

bdaase commented 2 years ago

Ah never mind, I can just use one config with different target_preserve policies per target. This will also do this and is much easier :)