Sorry I'm late to this conversation... On 18 April 2015 at 18:10, Martin Steigerwald <martin@xxxxxxxxxxxx> wrote: > That said, I think it can be scripted. But I am not aware of anyone having > done this. I may be missing something, so maybe someone on the list has a > recommendation. I thought I'd mention that I have developed a script [1] which is a part of snazzer [2] which at least transports all snapshots of all subvolumes on all mounted btrfs filesystems (or a subset thereof), using send -p where possible between two local filesystems or a remote host via ssh. That is, of course, assuming your snapshots are named and located according to the idiomatic convention expected by snazzer-receive [1] - which is unlikely, I admit. Everybody uses btrfs slightly differently. Regarding comments in this thread that btrfs send/receive hasn't been well tested and optimized, I've already found one inconsistency myself [3] so I thought I'd just contribute that I've also got a "snapshot measurement" script [4] which will give you a reliable, reproducible sha512sum and PGP signature report (this report contains a shell "one-liner" (!) consisting of only standard GNU core utils which you can run at any point to reproduce the measurement or verify the PGP signature still matches the filesystem under the path). snazzer-measure [4] should give consistent sha512sums and PGP signature verification regardless of whether the snapshot path happens to live on a btrfs filesystem or not, so you can maintain a chain of integrity all the way up to and beyond the point you move your snapshots onto non-btrfs filesystems if you so wish. [1] https://github.com/csirac2/snazzer/blob/master/doc/snazzer-receive.md [2] https://github.com/csirac2/snazzer [3] https://bugzilla.kernel.org/show_bug.cgi?id=95201 [4] https://github.com/csirac2/snazzer/blob/master/doc/snazzer-measure.md -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
