rsync windows failed: Invalid argument (22)

Rsync from linux server to a Windows server as a redundant backup using cwrsync but getting an error for the chown command on the directories being backed up.

The issue was simple enough, stop telling rsync to change the owner as the linux command is invalid on the windows server.

[php]rsync -atv /directorytobackup/ windowsserver::cwshare
changed to
[php]rsync -rtv /directorytobackup/ windowsserver::cwshare
and all is now quiet from an error message perspective.

Thanks to Marcin and Linux Questions Forum for the solution.

Leave a Reply

Your email address will not be published. Required fields are marked *