I am trying to rsync some directories on my linux server to a Windows 7 share mounted locally on the Linux server at /mnt/backups.
My rsync command looks like this:
rsync -avz --progress --partial --modify-window=1 --temp-dir=/tmp /home /mnt/backups
When it executes I get this:
building file list ...
165048 files to consider
rsync: ERROR: cannot stat destination "/mnt/backups": Cannot allocate memory (12)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(507) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [sender=2.6.9]
I've searched around and the only tips I've found were to add --modify-window
and --temp-dir
options but those haven't made any difference.
For the record, I've had similar problems trying to tar a backup file to this mounted location which is why I wanted to switch to rsync. I suspect Samba is causing these problems but everything looks fine on the surface. Not sure what else to do from here...
stat
function call was unable to allocate memory, which is unusual to say the least. Also, unless the Windows machine is using the FAT filesystem, you don't need themodify-window
option.