merge documents with scp

Nathan England nathan at nmecs.com
Fri Apr 27 13:51:35 MST 2012



You need to use rsync

rsync -av /path/to/localfile user at remotehost:/path/to/remotefile

or alternatively

rsync -av user at remotehost:/path/to/remotefile /path/to/localfile








On Friday, April 27, 2012 13:46:40 Michael Havens wrote:

thanks for the quick responses.... what I meant is like to have duplicate 
files on two systems and then make the files the same.


On Fri, Apr 27, 2012 at 1:07 PM, Carruth, Rusty 
<Rusty.Carruth at smartstoragesys.com> wrote:

Fast answer:
 
ssh me at foosystem ‘cat the_Remote_file’ >> localfile
 
Explanation:
 
                On system ‘foosystem’ (as me), cat the file.  On this system, 
append that stream of bytes to ‘localfile’.
 
Should you want to ‘tail –f’ the file on ‘foosystem’, change ‘cat’ to ‘tail –
f’.  (Or grep, or …)
 
Rusty
 
.
 
From: plug-discuss-bounces at lists.plug.phoenix.az.us [mailto:plug-discuss-
bounces at lists.plug.phoenix.az.us] On Behalf Of Michael Havens
Sent: Friday, April 27, 2012 1:05 PM
To: Main PLUG discussion list
Subject: merge documents with scp
 
is there a way to tell scp to add any appended text to an existing document? 
(that's called 'merge', right?)

-- 
:-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




-- 
:-)~MIKE~(-:




-- 

Regards,

Nathan England

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NME Computer Services http://www.nmecs.com
Nathan England (nathan at nmecs.com)
Systems Administration / Web Application Development
Information Security and Consulting
(480) 559.9681

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120427/9cffd312/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120427/9cffd312/attachment.pgp>


More information about the PLUG-discuss mailing list