我必须将我的数据备份到远程机器。本地机器运行 ubuntu 10.04,远程机器运行 winXP。
通过谷歌搜索我发现了关于这个论点的几个讨论,但没有一个能帮助我解决这个问题。
这是我所做的:
1)为远程文件夹创建挂载点
sudo mkdir /mnt/backup
2)挂载远程文件夹
sudo mount -t cifs -o username=XXX,password=XXXX //10.1.1.111/maxquant_linux /mnt/backup
3)执行 rsync
sudo rsync -avz /home/cism/Documents/Data/ /mnt/backup/
这是我得到的错误:
sending incremental file list
./
rsync: failed to set times on "/mnt/backup/.": Permission denied (13)
2012/
rsync: recv_generator: mkdir "/mnt/backup/2012" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
2013/
rsync: recv_generator: mkdir "/mnt/backup/2013" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
sent 57568 bytes received 304 bytes 38581.33 bytes/sec
total size is 36670901857 speedup is 633655.34
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]
我尝试了几个 rsync 选项,例如
--rsync-path='/usr/bin/rsync'
和
--rsync-path="sudo rsync"
但我总是遇到同样类型的错误。
你有什么建议吗?