digint / btrbk

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

question: local time-machine and automatic push to external drive when plugged in #368

Open bbigras opened 3 years ago

bbigras commented 3 years ago

Is possible to use btrbk to have local time-machine style snapshots and also push them to an external drive automatically when available?

Or do people use btrbk for local time-machine snapshots and use a script to push them to an external drive from time to time?

Thanks

digint commented 3 years ago

Is possible to use btrbk to have local time-machine style snapshots and also push them to an external drive automatically when available?

Yes, you can e.g. add a script calling btrbk on your automounter scripts, systemd triggers, ...

Or do people use btrbk for local time-machine snapshots and use a script to push them to an external drive from time to time?

This is really up to you, btrbk has no boundaries here. You can run btrbk from cron jobs / systemd timers, manually or wherever you want. Combine this with actions (e.g. run "btrbk snapshot" and "btrbk resume" in separate scrips) and filters (e.g. run "btrbk resume /mnt/my_backup_disk").