rsync on Windows (Cygwin), where I move files from shared folder (from another Windows instance) to NFS storage. I have mapped the shared folder to one drive and mounted the NFS folder to another.
I started the
rsync command this way:
C:\cygwin64\bin\rsync.exe -vrH --perms --partial --delete --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/w/
After 30 minutes of running and about 17,000 files transferred if failed on error:
rsync: write failed on "/cygdrive/w/domainName/Uploads/index_635244981053162421.html": Permission denied (13)
I can't see any reason for the permission denied error. For example, if I copy the file by hand it copies successfully.
I know that this is a shortcoming of the
rsync protocol. The
rsync protocol can't determine beforehand if it has write permissions at the target. Instead it just sends and checks for success or failure afterwards.
I don't have
ssh access to the NFS server - it's a storage instance. The source Windows client has Cygwin but does not have access to the NFS storage.
We are moving from an old 2008 server to anew one. One of the changes is to move all storage to a shared nfs storage. I know that this configuration is not perfect, but it's temporary. I need it to work properly for a month or so. NFS service can't be installed on the 2008 server unfortunately otherwise there wouldn't any need in rsync.
How can I make my copy continue running even if there is an error?
I thought using those options:
--partial-dir=DIR --delay-updates --inplace --ignore-errors
but it looks like it won't really solve my problem. Any suggestions?