Page 1 of 1

ZFS snapshot backup recovery

Posted: 27 Jul 2015 11:21
by 1aigaisa
Dear all
I have a plan with a daily snapshot, and I think it's running properly:

RAID6 auto-20150721-200000 20.9M Tue Jul 21 20:00 2015 Edit snapshot Delete snapshot
RAID6 auto-20150722-200000 17.7M Wed Jul 22 20:00 2015 Edit snapshot Delete snapshot
RAID6 auto-20150723-200000 12.6M Thu Jul 23 20:00 2015 Edit snapshot Delete snapshot
RAID6 auto-20150724-200000 72K Fri Jul 24 20:00 2015 Edit snapshot Delete snapshot
RAID6 auto-20150725-200000 72K Sat Jul 25 20:00 2015 Edit snapshot Delete snapshot
RAID6 auto-20150726-200000 72K Sun Jul 26 20:00 2015 Edit snapshot Delete snapshot

But, In case of disaster how can I access to one file or recover the full snapshot?
I'm trying to find .zfs\snapshots\ but I can't see it... Is it possible to share it in SAMBA?
BR

Re: ZFS snapshot backup recovery

Posted: 27 Jul 2015 12:40
by crowi
http://docs.oracle.com/cd/E19253-01/819 ... index.html
I'm trying to find .zfs\snapshots\ but I can't see it... Is it possible to share it in SAMBA?
Disks|ZFS|Datasets|Dataset|Edit
Enable Snapshot Visibility
But snapshots just store the differences, it makes no sense to share them via SMB
http://docs.oracle.com/cd/E19253-01/819 ... index.html

Re: ZFS snapshot backup recovery

Posted: 28 Jul 2015 02:46
by Onichan
Technically snapshots store just the changes on disk, but you can browse them and it will act like the normal full files as they were at that time, allowing you to copy the files to other locations.

Snapshots on disk are stored at /mnt/<pool>/<dataset>/.zfs/snapshot/<snapshot_name>

Anyways you don't share them out like that, you just set CIFS to present them, it's the "Enable shadow copy" checkbox and "Shadow Copy format" textbox under each share. Then you can use the Previous Versions tab in windows explorer to browse and copy files from snapshots.