csirac2 / snazzer

btrfs snapshotting and backup system offering snapshot measurement, transport and pruning.
BSD 2-Clause "Simplified" License
89 stars 9 forks source link

Measurement fails when .snapshot_measurements.exclude does not exist #26

Open grollinger opened 8 years ago

grollinger commented 8 years ago

I recently adopted snazzer for keeping my btrfs snapshots. Since I had several older snapshots that i created by hand, I wanted to import them into the snazzer .snapshotz directory. These snaphots of course contain neither the .snapshotz directory nor .snapshot_measurements.exclude.

In principle, I could go through all the snapshots and add an empty .exclude file, but

Snazzer should be able to deal with a non-existent .exclude file (perhaps by replacing it with an empty dummy file...)

Alternatively, it would be nice to have a command snazzer import to properly import a manual snapshot.

csirac2 commented 8 years ago

Thanks @rollingthunder, snazzer really needs some TLC and I intend to give it some soon :)

Appreciate the report. The measurements feature needs a rewrite, I need to have it just PGP sign a shasum rather than duplicate the work of signing the entire snapshot contents, etc.