Hi,
I have a zfs file system that I have been running for 4 years. I take regular snapshots of the data as a backup using the following recipe from https://www.dan.me.uk/blog/2012/08/05/full-system-backups-for-freebsd-systems-using-zfs/ .
This works fine and today I have discovered that about 2 years ago some files that I need were deleted. What I'd like to do is recover just the directories that were lost and I have a series of snapshots that covers this period on USB HDD's. They are 186GB compressed, so time is a factor.
On the original file system these would have been stored at
/zfs/home/Pictures/2013-10-2*
I could attempt to restore the entire pool using the backup, but this would overwrite the existing pool, this is a lot of work and I'd like to avoid this if at all possible.
Is there a way to extract just the files matching the path above??
So far I have connected the backup drive and gunzip'ed the snapshot into a directory as a file :
/home/tom/recovery/snapshot.zfs
Is there some way to mount or untar this file so that I can extract the 50 or so files that I need?
As ever your help is much appreciated.
I have a zfs file system that I have been running for 4 years. I take regular snapshots of the data as a backup using the following recipe from https://www.dan.me.uk/blog/2012/08/05/full-system-backups-for-freebsd-systems-using-zfs/ .
Code:
gpart destroy -F da0
dd if=/dev/zero of=/dev/da0 bs=1m count=128
zpool create zbackup /dev/da0
zfs set mountpoint=/backup zbackup
zfs snapshot -r zroot@backup
zfs send -Rv zroot@backup | gzip > /backup/full-system-backup.zfs.gz
zfs destroy -r zroot@backup
This works fine and today I have discovered that about 2 years ago some files that I need were deleted. What I'd like to do is recover just the directories that were lost and I have a series of snapshots that covers this period on USB HDD's. They are 186GB compressed, so time is a factor.
On the original file system these would have been stored at
/zfs/home/Pictures/2013-10-2*
I could attempt to restore the entire pool using the backup, but this would overwrite the existing pool, this is a lot of work and I'd like to avoid this if at all possible.
Is there a way to extract just the files matching the path above??
So far I have connected the backup drive and gunzip'ed the snapshot into a directory as a file :
/home/tom/recovery/snapshot.zfs
Is there some way to mount or untar this file so that I can extract the 50 or so files that I need?
As ever your help is much appreciated.