Using rsync to synchronise folders without overwriting files of same name on Mac OS X
Posted
by
Adam
on Super User
See other posts from Super User
or by Adam
Published on 2012-02-02T11:19:05Z
Indexed on
2012/10/18
11:04 UTC
Read the original article
Hit count: 228
I would like to synchronise the contents of two directories.
- Without overwriting but to create a copy if two files have the same name, but different sizes
- Without duplicating if two files have the same name and size.
- To work recursively
So far I have found the following command which might work
$ rsync -varE --progress ~/folder /volumes/server/folder
But I'm not entirely sure what the -E
flag does. It was suggested by a user on bananica.com but couldn't see a description for it in the manual. Would this do what I require successfully?
Thanks
© Super User or respective owner