rdiff-backup / rdiff-backup

Reverse differential backup tool, over a network or locally.
https://rdiff-backup.net/
GNU General Public License v2.0
1.09k stars 94 forks source link

[ENH] support volume shadow copies under Windows #520

Open ericzolf opened 3 years ago

ericzolf commented 3 years ago

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

frankcrawford commented 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).

ikus060 commented 3 years ago

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.

ericzolf commented 3 years ago

Smells slowly but surely like a topic for a plug-in interface...