rsync with overlay tree
Cenedese at indel.ch
Thu Mar 31 06:38:02 UTC 2016
>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
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.
More information about the rsync