zfs send/receive as dump/restore alternative
Matthew Seaman
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
restore that.
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:
https://github.com/infracaninophile/zfs-backup
I never did get round to writing a 'zfs-restore' script though.
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20161114/dd21e777/attachment.sig>
More information about the freebsd-questions
mailing list