On 28/02/16 05:45, Duncan wrote:
Γιώργος Πάλλας posted on Sat, 27 Feb 2016 13:45:03 +0200 as excerpted:Hi all. If I have a btrfs subvolume 'subv' and then subvolumes subv/sub1, subv/sub2, subv/sub3, is there a way to snapshot all the subv tree and then recursively send it remotely? I think this would be the analogous of zfs snapshot -r, and then zfs send -R.As a list regular and btrfs user myself, but not a dev... No idea about zfs and my own btrfs use-case doesn't use btrfs send/ receive either, so this is primarily from previous list posts, with a quick look at the (v4.4.1) btrfs-send manpage as well... Recursive send isn't yet supported, only one at a time. Based on a previous comment from someone who apparently looked at the code (but isn't a btrfs dev either), there's possibly some code for -r (recursive) already in the repo (or maybe it's simply a comment reserving the -r option?), but it doesn't work yet. However, it shouldn't be horribly difficult to hack up scripts that automate the otherwise manual recursive-send/receive for you, as I'd very likely do myself if I needed that functionality. =:^)
Thanks for the reply Duncan.The problem with scripting the recursive process, as I understand it, is that in the case of e.g. adding an identical file inside each one sub subvolume, this file would have to be transmitted during send, so many times as the number of the sub subvolumes, which of course is not viable. Am I right?
Giorgos
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
