rsync失败,错误:不能统计目的地…不能分配内存(12)

我正在尝试将Linux服务器上的某些目录rsync同步到本地安装在Linux服务器上的Windows 7共享目录/ mnt / backups中。

我的rsync命令如下所示:

rsync -avz --progress --partial --modify-window=1 --temp-dir=/tmp /home /mnt/backups 

当它执行时,我得到这个:

 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] 

我search了一下,我发现的唯一技巧是添加--modify-window--temp-dir选项,但这些没有任何区别。

为了logging,我有类似的问题,试图将备份文件tar这个安装位置,这就是为什么我想切换到rsync。 我怀疑桑巴正在造成这些问题,但表面看起来一切正常。 不知道还有什么要做…

似乎是Windows 7的一个问题。 修复方法是更新以下两个registry项。

将以下registry项设置为'1':

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache 

并将以下registry项设置为'3':

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size 

参考文献: http: //frankooh.wordpress.com/2012/01/02/smbrsync-cannot-allocate-memory/ http://ubuntuforums.org/showthread.php?t=869994&page=2&p=8251122#post8251122 http:/ /device.de/

不能分配内存(12)

接收方有多less内存? 增加Windows上的虚拟内存,然后重试。