
當我使用以下一組標誌將檔案從 ext4 檔案系統 rsync 到 btrfs 時:
rsync --update -DHAXErlptgo
備份目錄的第一個副本完成正常,但是當重複相同的命令(用於更新)時,即使是立即,也會出現與擴充屬性相關的錯誤。如果未使用 -X 標誌,則不會出現錯誤。錯誤如下所示(僅針對一個 /etc 目錄就有更多錯誤):
rsync: get_xattr_names: llistxattr(""/mnt/backup/rootdir/etc/systemd/system/multi-user.target.wants/winbindd.service"",1024) failed: Permission denied (13)
rsync: get_xattr_names: llistxattr(""/mnt/backup/rootdir/etc/systemd/system/multi-user.target.wants/zfs.target"",1024) failed: No such file or directory (2)
rsync: get_xattr_names: llistxattr(""/mnt/backup/rootdir/etc/systemd/system/timers.target.wants/backup.timer"",1024) failed: No such file or directory (2)
rsync: get_xattr_names: llistxattr(""/mnt/backup/rootdir/etc/systemd/system/timers.target.wants/ntpsync.timer"",1024) failed: No such file or directory (2)
有人可以建議為什麼會發生這些錯誤以及如何在不排除 -X 標誌的情況下消除它們嗎?
謝謝。
更新:在其他情況下,即使在第一個副本期間也會發生錯誤:
rsync: failed to set times on "/mnt/backup/rootdir/root/.cache/sessions/thumbs-hostname:0": Invalid argument (22)
rsync: recv_generator: failed to stat "/mnt/backup/rootdir/root/.cache/sessions/thumbs-hostname:0/Default.png": Not a directory (20)
rsync: failed to set times on "/mnt/backup/rootdir/root/.cache/sessions/thumbs-hostname:0": Invalid argument (22)
rsync: recv_generator: failed to stat "/mnt/backup/rootdir/root/.cache/sessions/thumbs-hostname:0/Default.png": Not a directory (20)
rsync: get_acl: sys_acl_get_file(root/.cache/sessions/.xfce4-session-hostname:0.yON2Lj, ACL_TYPE_ACCESS): No such file or directory (2)