Score:0

How to send a single parent ZFS filesystem snapshot and all its descendents' same snapshot to a new pool?

es flag

If we zfs snapshot -r tank@20220129, all sub-filesystems also get that snapshot.

How to send that single snapshot of tank with all sub-fs's to a new pool (no historical base of snapshots)?

While zfs send -R tank@20220129 will send all sub-fs's, it will also send all snapshots.

(We could later delete all of those snapshots, but that could be a massive amount of extra sending just to delete upon completion.)

There seems to be no zfs send -r functionality.

drookie avatar
za flag
Short answer - you can't.
math avatar
es flag
Obviously one can achieve the effect by using zfs list -r tank | shellscript.sh but rather klunky :(
Score:1
ru flag

I'm pretty sure you could do a zfs clone. If snapshots come across just zfs destroy them all; then do your zfs send | zfs recv of the clone without any snapshots.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.