Re: suggestion: atomic scp transactions
Alexander Rødseth <alexanro-w/[email protected]> Fri, 23 Jan 2004 14:49:43 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! :: Scott Henry Harrison <harris41-mhe/[email protected]>, 23.01.2004 14:04: > Or, maybe setting $SCP to be something like > "tar cf - . | ssh somewhere 'cd destination; tar xf -'" I just wanted to add, as I played with tar and ssh yesterday, that this should work as well (for copying all files on one system to /mnt/disk on another system via ssh and tar) tar -zc . | ssh [email protected] tar -zx -C destination This one uses gzip for compression, and -C instead of "cd" to select a directory. :) - Alexander ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn