When using rsync to copy files within the same server, to a different structure,
have been getting the following errors:
rsync: chown "/newexport/home/huffjl/dmesgout" failed: Invalid argument (22)
The original file looks like:
-rw-r--r-- 1 nobody sys 29 Sep 5 export/home/huffjl/dmesgout
The resultant file looks like this, if copied at all:
---------- 1 root sys 29 Sep 5 export/home/huffjl/dmesgout
After a "quantity" of these errors, rsync just stops, no errors, no messages.
The primary command used was:
rsync -ax /export/home/huffjl/ /newexport/home/huffjl
I doubt that this is an rsync problem, so I would suggest that you investigate
what is going on with your OS. Some suggestions:
Use higher levels of verbosity to see what username mapping rsync is doing for
these files. That might show you what user is having a problem.
Try using the --numeric-ids option to see if that avoids the problem (which
might help you to narrow down what is going wrong).
Try running rsync under strace (or truss, or whatever your OS supplies) to see
what arguments are being passed to the chown() call. See the issues and
debugging web page, http://rsync.samba.org/issues.html, for a script that can be
used for this purpose.