rsync with overlay tree

Fabian Cenedese
Thu, 31 Mar 2016 06:38:02 -0000

>Since you say the number is small, I suspect that something simple like:
>
>  rsync -hia /path/to/sync/common remotehost:
>  rsync -hia --ignore-times /path/to/sync/groupN remotehost:
>
>will be close to optimal.
>
>Another option is to build an --exclude-from list for the files in the
>special group and apply it to the first rsync.  Then you can run the
>second rsync without the --ignore-times, which may result in faster
>overall throughput.

Another way could be to build the specific directories and in there
create links to the common files if there aren't too many. Then on
rsyncing you need to dereference the links. That way you only
have one directory (structure) which rsync can already handle.

bye  Fabi