Using rsync to synchronize
jimoe at sohnen-moe.com
Thu Apr 5 20:05:45 MDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
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.
moe dot james at sohnen-moe dot com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the rsync