小编And*_*Riv的帖子

带空格的 SSH 路径上的 Rsync 不适用于引号

只要路径中没有空格,我就可以通过 SSH 成功进行 RSYNC。

当路径确实有空格时,它不起作用。我试过斜线、引号和双引号。

当我使用斜杠时,输出表明它是成功的,但我没有看到任何传输的文件。

rsync -avz /path\ with\ spaces/ user@remotelocation:/media/another\ path\ with/spaces/
Run Code Online (Sandbox Code Playgroud)

当我使用单引号或双引号时,它告诉我输入密码后权限被拒绝

rsync -avz '/path with spaces/' 'user@remotelocation:/media/another path with/spaces/'
Run Code Online (Sandbox Code Playgroud)

我能做什么?

谢谢你。

ssh rsync

19
推荐指数
2
解决办法
1万
查看次数

标签 统计

rsync ×1

ssh ×1