Using rsync to synchronize

James Moe jimoe at
Thu Apr 5 20:05:45 MDT 2012

Hash: SHA1

On 04/04/2012 02:51 PM, Steven Levine wrote:
> Take a look at --existing and --update.  Some combination of of
> these will probably get you the result you want.  It depends on
> your definition of synchronize.
>> Neither, or both, of those options seem to meet my requirement. 
>> --existing, "skip creating new files on receiver", appears to be 
>> counterproductive for synchronizing.
> As I said, it depends on how you define synchronize.  There are
> times when I need to bring the existing files into sync while not
> adding any new files.  This is where --existing is useful.  The
> result is the files are synchronized, although the resulting file
> sets might not be identical.
>> But I still see no way to update the sender's files if the
>> receiver's files are newer. Would I have to run another rsync
>> session with the sender and receiver reversed?
> Yes.  I neglected to mention it because I considered it obvious.
> Sorry about that.  Rsync is basically a very smart copy command.
> Rsync can be made act like a move command with the
> --remove-source-files, but this a special case.   BTW, don't forget
> to drop the --delete from the command lines.
  Thanks. That is what I was hoping to achieve.

- -- 
James Moe
moe dot james at sohnen-moe dot com
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the rsync mailing list