How to synchronize between differently structured directories using rsync (or other program)

Posted by doetoe on Super User See other posts from Super User or by doetoe
Published on 2011-10-26T09:39:39Z Indexed on 2012/04/06 23:33 UTC
Read the original article Hit count: 113

Filed under:
|
|

Does anyone of you know how to perform the following task: Suppose you have two directory trees, which I will call source and target. They may have a very different structure, but could contain many duplicate files.

An example would be a structured collection of photographs on one hand (the destination), and just a tmp directory in which you unload everything from your camera on the other (the source).

Maybe some of these files are already in the structured directory tree. I would like to rsync from the source to the target, such that only the files from the source that are not in the destination at any location are copied.

© Super User or respective owner

Related posts about sync

Related posts about rsync