how would I rsync just what has been modified?
If I interpret this question as:
'how would rsync know just what has been modified?'
The answer is: it depends.
rsync will compare timestamps unless you use the --checksum option.
RTFM...
If I interpret this question as:
'how would I know just what rsync has updated?'
You don't, you trust rsync.
I you don't trust rsync (I don't), you can run it twice with the --checksum
option (I do) or you can:
ssh user@box 'cd my-path;find . -type f -exec md5sum "{}" \;|sort' >
/tmp/remote.md5
cd my-path;find . -type f -exec md5sum "{}" \;|sort > /tmp/local.md5
sdiff -s /tmp/remote.md5 /tmp/local.md5
Ang get your banana... :)
Good luck...
ET
PS: Free advice, you can't sue me... :)
Michael Havens writes:
thanks. this is takling a long time..... how would I rsync just what has
been modified?
On Fri, Apr 27, 2012 at 1:51 PM, Nathan England <[email protected]> wrote:
**
You need to use rsync
rsync -av /path/to/localfile user@remotehost:/path/to/remotefile
or alternatively
rsync -av user@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 <
[email protected]> 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: [email protected] [mailto:
[email protected]] 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 - [email protected]
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 ([email protected])
Systems Administration / Web Application Development
Information Security and Consulting
(480) 559.9681
---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss