rsync“不允许操作”

前端之家收集整理的这篇文章主要介绍了rsync“不允许操作”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图这么简单的rsync到USB硬盘,命令是

rsync -az –modify-window = 2 / home / mnt / exthd / tmp /

我以root身份运行它.

但我收到很多错误,似乎都与权限不足有关:

rsync: chown "/mnt/exthd/tmp/home/someuser" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bash_logout" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bash_profile" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bashrc" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bash_logout" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bash_profile" Failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bashrc" Failed: Operation not permitted (1)
rsync: symlink "/mnt/exthd/tmp/home/guest/fred2" -> "fred" Failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see prevIoUs errors) (code 23) at main.c(1042) [sender=3.0.7]

这是3.0.7版.我尝试使用–super选项无效.有任何想法吗?

解决方法

FAT文件系统(Linux的挂载调用vfat)无法存储一些存储在Linux端的文件的权限和所有权数据.

您的选择似乎是:

>使用ext3 / 4或其他支持这些属性文件系统格式化磁盘.我想如果你与Windows共享,甚至NTFS都可以胜任.>使用–fake-super选项存储这些额外的属性,以便rsync在文件中写入xattrs而不是使用文件系统属性>忽略错误,这些属性将丢失.>将数据集包装在tar文件中,并将tar文件放在FAT系统上.保留所有属性,如果您提取它,它们将存在.

猜你在找的Linux相关文章