I think a good option for you might be to just rsync from source to destination normally, assuming it's a separate physical file-system transfer, using something like
rsync -e 'ssh -p 22' -quaxz --bwlimit=1000 --del --no-W --delete-excluded --exclude-from=/excludedstufflist /sourcedir serverIP:/destinationdir
and then when it's all copied to the right place on the new system, find out what new UIDs your system gave the data from the source system.
It's probably 1001, 1002 etc. In which case you can easily do a
find /destinationdir -user 1001 -exec chown username '{}' \;
find /destinationdir -user 1002 -exec chown otherusername '{}' \;
etc.
Yes, you'd have to do that last thing 100 times, but you could easily script that, if you know the UID sequence used during rsync.. I've done exactly this once, migrating about 60 users from one server to another, and it worked reasonably well. I also needed to replace group permissions, similar deal;
chown --from=oldguy newguy * -R
chown --from=:friends :family * -R
Stuff like that. Hope you can use this.
http://unix.stackexchange.com/questions/267352/rsync-complication-on-sync
– AReddy Jun 22 '16 at 02:14user1
also end up owning files and directories inside/home/sub1/test1
too? – Chris Davies Jun 22 '16 at 11:34