ZFS dumb zfs question

Is a dumb question but a time saver..

When i' I create snapshots always do with the -r option like this zfs snapshot -r zroot@backup
This backup everything on the disk, but, the backup is huge, my question is, if i' I don't use the recursive option, in case of disaster and ZFS broken pool

i' I got everything to restore the previous ZFS filesystem without -r option?

i' I mean like this :

Code:
zfs snapshot  zroot@backup
zfs send -v zroot@backup | gzip > /backup/full-system-backup.zfs.gz

(today i'am I'm backing up to a file)
 
Last edited by a moderator:
Without telling zfs(8) to be recursive you would get only the snapshot of the zroot dataset (with mountpoint of /zroot on standard installations). Remember that the zroot pool, and the zroot dataset are different things, despite the same name.
 
Back
Top