- Code: Select all
zfs snapshot -r zdata@`date +"%F-%H%M%S"`
The snapshots are recursive so each child filesystem has the same snapshot date/time. When performing a zfs send, to move send it to another pool, I'm not sure how to format the command to get it to send all the snapshots from the same date and time
- Code: Select all
zbak 758Ki 1.79Ti 306Ki /Volumes/zbak
zbak/zdata 206Ki 1.79Ti 206Ki /Volumes/zbak/zdata
zdata 1.35Ti 1.34Ti 1.19Mi /Volumes/zdata
zdata/Backups 31.5Gi 1.34Ti 332Ki /Volumes/zdata/Backups
zdata/Backups/Lion 31.5Gi 1.34Ti 31.5Gi /Volumes/zdata/Backups/Lion
zdata/Storage 9.76Gi 1.34Ti 9.76Gi /Volumes/zdata/Storage
zdata/Users 406Gi 1.34Ti 380Ki /Volumes/zdata/Users
zdata/Users/anika 2.24Gi 1.34Ti 769Mi /Volumes/zdata/Users/anika
zdata/Users/chris 401Gi 1.34Ti 342Gi /Volumes/zdata/Users/chris
zdata/Users/jaren 1.27Gi 1.34Ti 611Mi /Volumes/zdata/Users/jaren
zdata/Users/severin 851Mi 1.34Ti 469Mi /Volumes/zdata/Users/severin
zdata/Videos 934Gi 1.34Ti 908Gi /Volumes/zdata/Videos
From the above I'm wanting to send the last snapshot, zdata@2012-10-29-204904, and it's children to zbak/zdata
I've tried this
- Code: Select all
zfs send zdata@2012-10-29-204904 | zfs recv -F zbak/zdata
but it isn't working. Not sure what I'm doing wrong. I essentially just want to duplicate the last snapshot filesystem structure to another pool for offsite backup.