Rsync cant'复制我的rdiff备份文件

时间:2015-09-28 09:24:05

标签: backup rsync rdiff-backup

我使用 rdiff-backup 在本地Linux服务器上备份我的文件系统。那似乎没问题。然后我用 rsync 执行远程备份到Windows机器。 rsync 目标目录上的所有读/写权限都已正确设置,但仍然会出现以下错误...

 [2015-09-28 09:39:10] INFO Copying files to remote directory...
    rsync: failed to set times on "/mnt/backup/.": Permission denied (13)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/access_control_lists.2015-09-28T09:31:52+01:00.snapshot" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/current_mirror.2015-09-28T09:31:52+01:00.data" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/error_log.2015-09-28T09:31:52+01:00.data" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/extended_attributes.2015-09-28T09:31:52+01:00.snapshot.gz" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/file_statistics.2015-09-28T09:31:52+01:00.data.gz" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/mirror_metadata.2015-09-28T09:31:52+01:00.snapshot.gz" failed: No such file or directory (2)
    rsync: open "/mnt/backup/filesystem/etc/rdiff-backup-data/session_statistics.2015-09-28T09:31:52+01:00.data" failed: No such file or directory (2)

这是我的 rsync 命令:

 rsync --delete --delete-before --update --append --stats -rtlz "$BACKUP_SOURCE"/ "$BACKUP_TARGET"

有人知道为什么会跳过某些备份文件吗?感谢。

1 个答案:

答案 0 :(得分:0)

Windows不允许在文件名中使用冒号:

您必须找到另一种镜像备份的方法。一个tar文件,也许?