[CLUE-Talk] tar 1-liner for moving data from partition to partition

David Rudder david.rudder at reliableresponse.net
Wed Oct 20 17:50:35 MDT 2004


This also works very nicely over ssh

tar cf - .|ssh name at host "(cd /dir;tar xvf -)"

-Dave

On Wed, 2004-10-20 at 17:38, dave price wrote:
> cluebies,
> 
> Office Depot has 200gb drives on sale this week for
> $99 in Denver this week.  (yes that is $0.50 per
> gigabyte)
> 
> Reallocating my drive space reminded me to post the
> '1-liner' that I am pretty sure I learned here first.
> 
> tar cf - . | (cd "$1"; tar xvf -) 
> 
> cd into the 'source' directory first. "$1" is the
> target directory.  Also works as a bash script.
> 
> Runs quickly even over accross a network wher you have
> mounted the source/target as needed and preserves
> attributes very nicley.
> 
> Hava a lot of fun.
> 
> aloha,
> dave
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> CLUE-Talk mailing list
> Post messages to: CLUE-Talk at clue.denver.co.us
> Unsubscribe or manage your options: http://clue.denver.co.us/mailman/listinfo/clue-talk




More information about the clue-talk mailing list