Open ericzolf opened 3 years ago
While it doesn't run on Windows, safekeep is a wrapper around rdiff-backup which provides support for Linux snapshotting (currently only LVM and XFS, but now looking at btrfs).
Alternatively, https://www.timedicer.co.uk/ wrote a wrapper arrount rdiff-backup to enable VSS. I wanned to port this into Minarca, but never got the chance to do it. Worth taking a look at his code.
Smells slowly but surely like a topic for a plug-in interface...
Is your feature request related to a problem? Please describe.
rdiff-backup doesn't react too well to files changing while the backup happens so that supporting a snapshot-capability could be useful.
Describe the solution you'd like
Create a snapshot before starting the backup, e.g. using some of the ideas under https://www.sans.org/blog/using-volume-shadow-copies-from-python/
Describe alternatives you've considered
More generically, it might make sense to have pre- and post-tasks called automatically by rdiff-backup (create a snapshot, stop/suspend certain processes, dump a database, etc...). It could be an "init.d"-alike directory where scripts are called and/or a plug-in interface (to offer facilities like the snapshot-one).
Additional context
516 pointed at https://burp.grke.org/ which supports such VSS