Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2020 11:30:40 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-questions@freebsd.org
Subject:   Restoring and snapshots
Message-ID:  <56b4e678-0e66-e65b-b9d2-a2e79a5b7b6f@netfence.it>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56b4e678-0e66-e65b-b9d2-a2e79a5b7b6f>