rsync is fantastic except for one usual feature we want from it
..please help ?
Timothy.Conway at jbssa.com
Mon Jun 22 14:59:02 GMT 2009
That's not a usual feature. That's a very unusual feature, as it would
never be included in a syncronization tool. What you want is a stateful
file transfer tool. Since you wish to transfer only new files, rsync
has no advantage over scp in your application.
find src -type d -print|while read dir
if grep "^$dir$" /file/thathasthelistofwhatyouvesent>/dev/null
scp -rp $dir locationb:`dirname $dir` && echo "$dir" >>
find src -type f -print|while read file
if grep "^$file$" /file/thathasthelistofwhatyouvesent>/dev/null
scp -p $file locationb:`dirname $file` && echo "$file" >>
Just a skeleton to work from. If you're doing a flat directory, the
second stanza is all you need.
And by all means, you can use rsync instead of scp - I was just looking
for things that are universally available. Heck, you could scripted
ftp, but it's harder to determine success there.
From: rsync-bounces+timothy.conway=jbssa.com at lists.samba.org
[mailto:rsync-bounces+timothy.conway=jbssa.com at lists.samba.org] On
Behalf Of Low, Alex
Sent: Sunday, June 21, 2009 7:24 PM
To: rsync at lists.samba.org
Subject: rsync is fantastic except for one usual feature we want from it
..please help ?
Rsync is a fantastic program, and it does everything we need in terms of
file transfer and syncing source and destination file directories.
We do have a situation now where we need rsync to transfer the files
once only from the source directory. Please let me briefly explain
using a simple generic exmple:
1. At t0, we transfer f0 location A to location B
2. At t1, 10 new files are added to Location A
Therefore, rysnc faithfully transfers all 10 new files to location B
At location B, we now have f0 to f10.
3. At t2, f0 to f3 are deleted from location B, and we don't ever want
the deleted files to be copied again from location A
4. At t3, rysnc waits up, transfers files f0 and f10 again plus any new
files that may have been added.
So, at location B, we end with the deleted files f0 to f3 again.
Can you please think of a way we can soft-switch rsync NOT to do step 4
Our help much appreciated.
Asgard Capital Management Limited
Level 39, 152-158 St Georges Terrace, PERTH WA 6000
* (08) 9415 5758 * 0423 820 728
7 (08) 9481 8481
alex.low at asgardwealthsolutions.com.au
Asgard Wealth Solutions
Advice. Solutions. Confidence.
This message and any files transmitted with it are confidential and
should be read only by those persons to whom it is addressed. If you
have received this message in error, please notify us immediately by way
of reply. Please also destroy and delete the message from your computer.
Any unauthorised form of reproduction of this message is strictly
It is the duty of the recipient to virus scan and otherwise test the
information provided before loading on to any computer system. No
warranty is given or made by Asgard Wealth Solutions Limited, Asgard
Capital Management Limited or SECURITOR Financial Group Limited that the
information is free of a virus or any other defect or error and they
will not be liable for the proper and complete transmission of the
information contained in this communication, nor for any delay in its
Any views expressed in this message are those of the individual sender,
except where the sender specifically states they are the views of Asgard
Wealth Solutions Limited, Asgard Capital Management Limited or SECURITOR
Financial Group Limited, as the case may be.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync