Restoring and snapshots
Andrea Venturoli
ml at netfence.it
Fri Apr 10 09:30:52 UTC 2020
Hello.
When I'm doing backups/dumps of ZFS filesystems (with whatever tool), I
use snapshots.
So, suppose I have the following datasets:
/etc
/usr
/usr/local
/var
I'll snapshot them and back up
/etc/.zfs/snapshot/snapname/
/usr/.zfs/snapshot/snapname/
/usr/local/.zfs/snapshot/snapname/
/var/.zfs/snapshot/snapname/
Then I'll get the same directory structure when restoring.
Any idea how to easily remove the .zfs/snap and go back to the original
tree?
I tried writing a few lines of script, but I found out that's not so
easy (due to directories which must overlap, spaces in file names, etc...).
Any hint?
bye & Thanks
av.
More information about the freebsd-questions
mailing list