On Tue, 2005-12-27 at 23:53 +0000, Mick wrote: > > Ideally I would like to connect and tar | scp the directories/files from one > box to another in a single motion. Any advice to help me understand how to > make this work, or why the above attempt fails would be much appreciated.
Locallly : tar lcf - . | (cd /other/area/store; tar -xpvf - ) tar lcf - /path/to/file | (cd /other/area/store; tar -xpvf - ) To specify directories or files to exclude, we can use the option "-- exclude" tar --exclude File1 --exclude Dir1 -lcf - . | ( cd /other/area; tar -xvpf - ) via SSH remotely : tar -czf - /directory/to/copy | ssh systemB tar -xzvf - -C /tmp How's that?? Bear in mind that SSH will use some overhead due to encryption. (you can change the cipher to blowfish if you want/is not that paranoid :-) -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:27:28 up 1 day, 1:09, 6 users, load average: 0.73, 0.83, 1.09 -- gentoo-user@gentoo.org mailing list