On 30 avr. 2010, at 13:47, Euan Thoms wrote:
> Well I'm so impressed with zfs at the moment! I just got steps 5 and 6 (form
> my last post) to work, and it works well. Not only does it send the increment
> over to the backup drive, the latest increment/snapshot appears in the
> mounted filesystem. In nautilus I can browse an exact copy of my PC, from /
> to the deepest parts of my home folder. And it will backup my entire system
> in 1-2 minutes, AMAZING!!
>
> Below are the steps, try it for yourself on a spare USB HDD:
>
> # Create backup storage pool on drive c12t0d0
> pfexec zpool create backup-pool c12t0d0
> # Recursively snapshot the root pool (rpool)
> pfexec zfs snapshot -r rp...@first
>
> # Send the entire pool in all it's snapshots to the backup pool, disable
> mounting
> pfexec zfs send rp...@first | pfexec zfs receive -u backup-pool/rpool
> [snip ]pfexec zfs send rpool/export/home/euan/vbox-...@first | pfexec zfs
> receive -u backup-pool/rpool/export/home/euan/VBOX-HDD
>
> # Take second snapshot at a later point in time
> pfexec zfs snapshot -r rp...@second
>
> # Send the increments to the backup pool
> pfexec zfs send -i rpool/r...@first rpool/r...@second | pfexec zfs recv -F
> backup-pool/rpool/ROOT
> [snip
> ]pfexec zfs send -i rpool/export/home/euan/downlo...@first
> rpool/export/home/euan/downlo...@second | pfexec zfs recv -F
> backup-pool/rpool/export/home/euan/Downloads
Just a quick comment for the send/recv operations, adding -R makes it recursive
so you only need one line to send the rpool and all descendant filesystems.
I use the send/recv operations for all sorts of backup operations. For the
equivalent of a "full backup" of my boot volumes :
NOW=`date +%Y-%m-%d_%H-%M-%S`
pfexec /usr/sbin/zfs snapshot -r rp...@$now
pfexec /usr/sbin/zfs send –R rp...@now | /usr/bin/gzip >
/mnt/backups/rpool.$NOW.zip
pfexec /usr/sbin/zfs destroy -r rp...@$now
But for any incremental transfers it's better to recv to an actual filesystem
that you can scrub and confirm that the stream made it over OK.
Cheers,
Erik
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss