Blog Archive

Thursday, 26 August 2004

Unix tar tips...

use tar to copy a directory with all links etc intact

tar cvf - . |(cd /opt/local/www/owl ; tar xvf - )



use tar to copy a directory from one host to another using remsh

cd /local/dir

tar cvf - ./* | remsh remotehost '(cd /remote/dir ; tar xvf -)'