You want:

6421958 want recursive zfs send ('zfs send -r')

Which is actively being worked on.

- Eric

On Fri, Apr 13, 2007 at 05:41:38PM +1200, Nicholas Lee wrote:
> Rather having to write something like:
> 
> #!/bin/bash
> 
> TIME=`date '+%Y-%m-%d-%H:%M:%S'`
> zfs snapshot -r [EMAIL PROTECTED]
> 
> for  i in `zfs list -H | grep $TIME | cut -f1` ; do
>  zfs send $i | ssh ihstore zfs receive -d tank/sstore-ztank ;
> done
> 
> That is just a first run, I'll need to add a a touch /ztank/.LASTSEND+$TIME
> file and do some parsing and stuff to make it all incremental.
> 
> It would be much nicer to do something like:
> 
> zpool snapshot [EMAIL PROTECTED]
> zpool send -i [EMAIL PROTECTED] [EMAIL PROTECTED] | ssh BACKUPHOST zpool 
> receive
> remote-tank/ztank-backup
> 
> then another pool on the same machine to same backup pool on the remote
> machine.
> 
> zpool snapshot [EMAIL PROTECTED]
> zpool send -i [EMAIL PROTECTED] [EMAIL PROTECTED] | ssh BACKUPHOST zpool 
> receive
> remote-tank/mtank-backup
> 
> 
> Possible or is this going to break the zfs model?
> 
> Nicholas

> _______________________________________________
> zfs-discuss mailing list
> [EMAIL PROTECTED]
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
[EMAIL PROTECTED]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to