> I've only started using ZFS this week, and hadn't even touched a Unix

welcome to ZFS... here is a simple script you can start with:

#!/bin/sh

snaps=15
today=`date +%j`
nuke=`expr $today - $snaps`
yesterday=`expr $today - 1`

if [ $yesterday -lt 0 ] ; then
   yesterday=365
fi

if [ $nuke -lt 0 ] ; then
   nuke=`expr 365 + $nuke`
fi

zfs destroy  -r [EMAIL PROTECTED]
zfs snapshot -r [EMAIL PROTECTED]
zfs destroy  -r [EMAIL PROTECTED]
zfs snapshot -r [EMAIL PROTECTED]

zfs send -i z/[EMAIL PROTECTED]  z/[EMAIL PROTECTED]  | bzip2 -c | ssh  
some.host.com "bzcat | zfs recv -v -F -d z"
zfs send -i z/[EMAIL PROTECTED]    z/[EMAIL PROTECTED]    | bzip2 -c | ssh  
some.host.com "bzcat | zfs recv -v -F -d z"
zfs send -i z/[EMAIL PROTECTED] z/[EMAIL PROTECTED] | bzip2 -c | ssh  
some.host.com "bzcat | zfs recv -v -F -d z"

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to