将 root:root 拥有的文件 rsync 到 macos 时无法保留权限

将 root:root 拥有的文件 rsync 到 macos 时无法保留权限

root我在 Linux 服务器上拥有文件,其所有权权限为 root:root。当 rsync 到我的本地 Mac 时,这些文件的所有权权限更改为 root:wheel,因为Mac 上没有组。我尝试使用该--numeric-ids选项,但没有帮助:

sudo rsync --rsync-path='sudo rsync' --numeric-ids -og me@host:/home/me/rsync_test/test_file.txt .

相关内容