Re: [zfs-discuss] zfs send/recv question

2008-03-31 Thread Bill Shannon
Bill Shannon wrote: > If I do something like this: > > zfs snapshot [EMAIL PROTECTED] > zfs send [EMAIL PROTECTED] > tank.backup > sleep 86400 > zfs rename [EMAIL PROTECTED] [EMAIL PROTECTED] > zfs snapshot [EMAIL PROTECTED] > zfs send -I [EMAIL PROTECTED] [EMAIL PROTECTED] > tank.incr > > Am I g

Re: [zfs-discuss] zfs send/recv question

2008-03-10 Thread Albert Chin
On Thu, Mar 06, 2008 at 10:34:07PM -0800, Bill Shannon wrote: > Darren J Moffat wrote: > > I know this isn't answering the question but rather than using "today" > > and "yesterday" why not not just use dates ? > > Because then I have to compute yesterday's date to do the incremental > dump. Not

Re: [zfs-discuss] zfs send/recv question

2008-03-07 Thread Volker A. Brandt
> > zfs send -i z/[EMAIL PROTECTED]z/[EMAIL PROTECTED]| bzip2 -c |\ > >ssh host.com "bzcat | zfs recv -v -F -d z" > > Since I see 'bzip2' mentioned here (a rather slow compressor), I > should mention that based on a recommendation from a friend, I gave a > compressor called 'lzop' (http

Re: [zfs-discuss] zfs send/recv question

2008-03-07 Thread Nicolas Williams
On Fri, Mar 07, 2008 at 01:52:45AM -0500, Rob Logan wrote: > > Because then I have to compute yesterday's date to do the > > incremental dump. > > snaps=15 > today=`date +%j` > # to change the second day of the year from 002 to 2 > today=`expr $today + 0` Er, can't this be confused with octal

Re: [zfs-discuss] zfs send/recv question

2008-03-07 Thread Darren J Moffat
Randy Bias wrote: > On Mar 7, 2008, at 8:55 AM, Bob Friesenhahn wrote: >> On Fri, 7 Mar 2008, Rob Logan wrote: >> Since I see 'bzip2' mentioned here (a rather slow compressor), I >> should mention that based on a recommendation from a friend, I gave a >> compressor called 'lzop' (http://www.lzop.or

Re: [zfs-discuss] zfs send/recv question

2008-03-07 Thread Randy Bias
On Mar 7, 2008, at 8:55 AM, Bob Friesenhahn wrote: > On Fri, 7 Mar 2008, Rob Logan wrote: > Since I see 'bzip2' mentioned here (a rather slow compressor), I > should mention that based on a recommendation from a friend, I gave a > compressor called 'lzop' (http://www.lzop.org/) a try due to its >

Re: [zfs-discuss] zfs send/recv question

2008-03-07 Thread Bob Friesenhahn
On Fri, 7 Mar 2008, Rob Logan wrote: > > zfs send -i z/[EMAIL PROTECTED] z/[EMAIL PROTECTED] | bzip2 -c |\ > ssh host.com "bzcat | zfs recv -v -F -d z" > zfs send -i z/[EMAIL PROTECTED] z/[EMAIL PROTECTED] | bzip2 -c |\ > ssh host.com "bzcat | zfs recv -v -F -d z" > zfs send -i z/[EMAIL PRO

Re: [zfs-discuss] zfs send/recv question

2008-03-06 Thread Rob Logan
> Because then I have to compute yesterday's date to do the incremental dump. snaps=15 today=`date +%j` # to change the second day of the year from 002 to 2 today=`expr $today + 0` nuke=`expr $today - $snaps` yesterday=`expr $today - 1` if [ $yesterday -lt 1 ] ; then yesterday=365 fi if [

Re: [zfs-discuss] zfs send/recv question

2008-03-06 Thread Bill Shannon
Darren J Moffat wrote: > I know this isn't answering the question but rather than using "today" > and "yesterday" why not not just use dates ? Because then I have to compute yesterday's date to do the incremental dump. I don't suppose I can create symlinks to snapshots in order to give them mult

Re: [zfs-discuss] zfs send/recv question

2008-03-06 Thread Darren J Moffat
Bill Shannon wrote: > If I do something like this: > > zfs snapshot [EMAIL PROTECTED] > zfs send [EMAIL PROTECTED] > tank.backup > sleep 86400 > zfs rename [EMAIL PROTECTED] [EMAIL PROTECTED] > zfs snapshot [EMAIL PROTECTED] > zfs send -I [EMAIL PROTECTED] [EMAIL PROTECTED] > tank.incr > > Am I g

[zfs-discuss] zfs send/recv question

2008-03-05 Thread Bill Shannon
If I do something like this: zfs snapshot [EMAIL PROTECTED] zfs send [EMAIL PROTECTED] > tank.backup sleep 86400 zfs rename [EMAIL PROTECTED] [EMAIL PROTECTED] zfs snapshot [EMAIL PROTECTED] zfs send -I [EMAIL PROTECTED] [EMAIL PROTECTED] > tank.incr Am I going to be able to restore the streams?