如何在 cifs 挂载上复制名称中带有 systemd 挂载单元转义的文件?

如何在 cifs 挂载上复制名称中带有 systemd 挂载单元转义的文件?

我正在用(协议版本 3) (在此示例中)编写备份和带有挂载单元转义rsync的文件,这会导致以下问题:systemd\x2d-cifs/mnt/diskstation/backup

> sudo rsync -a /etc/systemd/system/ /mnt/diskstation/backup/test/
rsync: recv_generator: failed to stat "/mnt/diskstation/backup/test/snap-openmapper\x2ddesktop-22.mount": Invalid argument (22)
rsync: symlink "/mnt/diskstation/backup/test/multi-user.target.wants/snap-openmapper\x2ddesktop-22.mount" -> "/etc/systemd/system/snap-openmapper\x2ddesktop-22.mount" failed: Invalid argument (22)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

将文件复制到/tmpsudo rsync -a /etc/systemd/system/ /tmp/test/正常工作。

有关该文件的更多信息:

> stat /etc/systemd/system/snap-openmapper\\x2ddesktop-22.mount 
  Datei: /etc/systemd/system/snap-openmapper\x2ddesktop-22.mount
  Größe: 263        Blöcke: 8          EA Block: 4096   Normale Datei
Gerät: 802h/2050d   Inode: 2243        Verknüpfungen: 1
Zugriff: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Zugriff    : 2019-01-13 10:35:13.500148076 +0100
Modifiziert: 2018-06-30 21:10:57.316164101 +0200
Geändert   : 2018-08-02 13:54:58.150254417 +0200
 Geburt    : -

我想知道这种行为的责任在于谁:用户(cifs可能无法允许\使用名称,但现在是 2018 年,所以......),rsync或者cifs

相关内容