zfs send/receive as dump/restore alternative
matthew at FreeBSD.org
Mon Nov 14 07:53:54 UTC 2016
On 14/11/2016 05:46, Victor Sudakov wrote:
> How would you restore a) a single dataset or b) a single file from a
> replication stream package? I really need this mode of operation for
> undeleting users' files etc.
You have to 'zfs recv' your datastream and expand it out as a
filesystem. Then you can simply copy individual files back to your live
system, or you can do a zfs send / zfs recv of a single dataset to
You can easily 'zfs recv' the datastream into a different root directory
than it came from -- so you won't end up overwriting onesystem with the
backup of another.
There are scripts to do this in ports, but here's some I wrote myself:
I never did get round to writing a 'zfs-restore' script though.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 931 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions