suggestion: atomic scp transactions

"Scott Henry Harrison" <harris41-mhe/[email protected]> Fri, 23 Jan 2004 08:00:17 -0500
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Just a suggestion.  Is there a way
to make the default scp transfer behavior
be more atomic (i.e. "instantaneous")? 

For example, when transferring a big cgi
file or collection of dependent modules,
the web server experiences a period of
down-time. 

Would it be possible to separate the network
transfer lag from the critical filesystem changes? 

I know this can be implemented with 3 lines
of code (transfer to temporary directory and
then recursively copy into desired location),
but I would much rather type in a flag. 

Or, alternatively, maybe some sort of "tar"
transfer mode like 

aap install PREFIX=scp_tarmode://somewhere// 

Or, maybe setting $SCP to be something like
"tar cf - . | ssh somewhere 'cd destination; tar xf -'" 

If such a variation would work, maybe it
could at least be added to the documentation?
(I would like to somehow volunteer in this way
or another way, or we can just make Bram do it <=== joke :=) ). 

Regards,
Scott 




-------------------------------------------------------
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