Oh. You want to use rsync, with ssh piping.
rsync me@foosystem:remotefile localfile
Note that this only copies this way if needed. Do it the other way:
Rsync localfile me@foosystem:remotefile
If you want to go the other way. If you don’t know which way to go, you MIGHT get away with doing them both. See the rsync man page…
Rusty
From: plug-discuss-bounces@lists.plug.phoenix.az.us [mailto:plug-discuss-bounces@lists.plug.phoenix.az.us] On Behalf Of Michael Havens
Sent: Friday, April 27, 2012 1:47 PM
To: Main PLUG discussion list
Subject: Re: merge documents with scp
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@smartstoragesys.com> wrote:
Fast answer:
ssh me@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@lists.plug.phoenix.az.us [mailto:plug-discuss-bounces@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@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~(-: