Closed fr3aker closed 3 years ago
Thanks for contributing!
I finally got around to test this a bit, works for me as well.
Pushed some tiny fixups (will squash them on final merge).
I'd love to see a -n, --dryrun
option, dumping the commands that will be executed. Would that be possible / not too complicated? Point is that it makes me very nervous when running scripts like this as root, without being able to double-check what will happen.
Thank you for the review and fixes! It should require reasonable effort to add a dry run option. I'll look into it.
Added the dry run mode. The output contains a small lie: in order to have the file name easily visible it introduces an artificial "cat {file}" as the first command in the pipeline. In reality it simply passes on the file handle to stdin.
Great, thanks.
Again added some cosmetics. Unless you yell I'll merge this (squashed) for next release (soon)
looks good to me, thanks for checking!
merged in: 82860f0f4c413cb73928bf434e0c983cd7a6dd7a, bddd7a1d69ce2ed70cfc6b1c68560393be49ae67
now eagerly waiting for my disks doing raw backups to finally fail :D
Adds a basic python script to restore incremental raw backups into a btrfs subvolume.
The implementation status of this script is mostly "works for me". pbkdf2 and gpg options are not supported. Mileage for (de)compressors may vary. It should be easy enough to extend if anyone needs the missing features.
usage:
example run with success:
example run with error: