只要路径中没有空格,我就可以通过 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)
我能做什么?
谢谢你。