Carl Brewer wrote:
G'day,
I'm putting together a LAN server with a couple of terabyte HDDs as a mirror
(zfs root) on b117 (updated 2009.06).
I want to back up snapshots of all of rpool to a removable drive on a USB port -
simple & cheap backup media for a two week rolling DR solution - ie: once a
week a HDD gets swapped out and kept offsite. I figure ZFS snapshots are perfect
for local backups of files, it's only DR that we need the offsite backup for.
I created and formatted one drive on the USB interface (hopefully this will
cope with drives being swapped in and out?), called it 'backup' to confuse
things :)
zfs list shows :
NAME USED AVAIL REFER MOUNTPOINT
backup 114K 913G 21K /backup
rpool 16.1G 897G 84K /rpool
rpool/ROOT 13.7G 897G 19K legacy
rpool/ROOT/opensolaris 37.7M 897G 5.02G /
rpool/ROOT/opensolaris-1 13.7G 897G 10.9G /
rpool/cashmore 140K 897G 22K /rpool/cashmore
rpool/dump 1018M 897G 1018M -
rpool/export 270M 897G 23K /export
rpool/export/home 270M 897G 736K /export/home
rpool/export/home/carl 267M 897G 166M /export/home/carl
rpool/swap 1.09G 898G 101M -
I've tried this :
zfs snapshot -r rp...@yyyymmddhh
zfs send rp...@yyyymmddhh | zfs receive -F backup/data
eg :
c...@lan2:/backup# zfs snapshot -r rp...@2009070804
c...@lan2:/backup# zfs send rp...@2009070804 | zfs receive -F backup/data
You are missing a -R for the 'zfs send' part.
What you have done there is create snapshots of all the datasets in
rpool called 2009070804 but you only sent the one of the top level rpool
dataset.
-R
Generate a replication stream package, which will
replicate the specified filesystem, and all descen-
dant file systems, up to the named snapshot. When
received, all properties, snapshots, descendent file
systems, and clones are preserved.
If the -i or -I flags are used in conjunction with
the -R flag, an incremental replication stream is
generated. The current values of properties, and
current snapshot and file system names are set when
the stream is received. If the -F flag is specified
when this stream is recieved, snapshots and file
systems that do not exist on the sending side are
destroyed.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss