[wplug] new HDD

Brandon Kuczenski brandon at 301south.net
Sat Feb 21 22:18:36 EST 2004


> | I probably would have done this:
> | 
> | cd /home;
> | tar cpf - . | (cd /temp1; tar xpvf -)
> | 
> | I use this style quite often, even for copying data to other systems, 
> | like:
> | 
> | cd /home;
> | tar cpf - . | ssh foobar.baz.com "cd /temp1; tar xpvf -"

Can you explain what the '-' does there?  Is it a stand-in for a temporary 
file?  That can't be, because how would the temporary file get to the 
remote system?
 
> in the theme of "there's more than one way to do it", i've found rsync is
> good for this also:
> 
> rsync -av /home /temp1
> 
> and of course over ssh:
> 
> rsync -av -e "ssh -2" /home root at somecomputer:/temp1
> 
> though tar is, of course, everwhere while rsync might not be ;).

These are great - thanks.  This is especially good since I'm beginning to
design some kind of 'backup' regimen.  I was planning to just write a
handful of scripts myself, but it occurs to me that there is probably some
kind of 'standard' tool that people use to perform routine, maybe
incremental, compressed backups.  Is there?  It seems like 'tar' is the 
right tool to me.

-Brandon





More information about the wplug mailing list