rsync 出现 rsync chown 您的目录 failed: invalid argument(22)
rsync: chown "/cygdrive/F/LinuxBackup/mail/bestcheer.com/zhouy" failed: Invalid
argument (22)
argument (22)
环境:
服务器端LINUX:配置文件如下:
uid=0
gid=0
max connections = 4
logfile = /var/log/rsync.log
[maildata]
uid=0
gid=0
path = /data/mail
comment = backup Mail Data
#ignore errors
read only = yes
list = no
auth users = backup
hosts allow = 192.168.0.16
secrets file = /etc/rsync.pw
~
gid=0
max connections = 4
logfile = /var/log/rsync.log
[maildata]
uid=0
gid=0
path = /data/mail
comment = backup Mail Data
#ignore errors
read only = yes
list = no
auth users = backup
hosts allow = 192.168.0.16
secrets file = /etc/rsync.pw
~
客户端windows 2003 ,运行以下命令从LINUX服务器上同步数据出现:
F:\LinuxBackup\mail>"C:\Program Files\ICW\Bin\rsync" -vzrtopg --progress --delet
e --password-file=/cygdrive/f/mailrsync.pw [email protected]::maildata /cygdri
ve/F/LinuxBackup/mail/
e --password-file=/cygdrive/f/mailrsync.pw [email protected]::maildata /cygdri
ve/F/LinuxBackup/mail/
这里出现如下提示:
sent 1477 bytes received 14242 bytes 10479.33 bytes/sec
total size is 117965647 speedup is 7504.65
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1508) [generator=3.0.7]
total size is 117965647 speedup is 7504.65
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1508) [generator=3.0.7]
查看终端的输出有如下提示:
rsync: chown "/cygdrive/F/LinuxBackup/mail/bestcheer.com/zhouy" failed: Invalid argument (22)
解决方法:
修改:C:\Program Files\ICW\etc\fstab文件增加如下行:
F:\ /f-drive /ntfs noacl,user 0 0
在WINDOWS把运行命令修改如下,把 /cygdrive/F 改为/f-drive
F:\LinuxBackup\mail>"C:\Program Files\ICW\Bin\rsync" -vzrtopg --progress --delet
e --password-file=/cygdrive/f/mailrsync.pw [email protected]::maildata /f-driv
e/LinuxBackup/mail/
e --password-file=/cygdrive/f/mailrsync.pw [email protected]::maildata /f-driv
e/LinuxBackup/mail/
转载于:https://blog.51cto.com/dengweihua1/333562