gpt4 book ai didi

macos - Rsync 错误 : The source and destination cannot both be remote

转载 作者:行者123 更新时间:2023-12-05 06:36:24 30 4
gpt4 key购买 nike

我能够将文件从我的远程服务器 Rsync 到我的本地机器。

rsync -av [remote-server]:web/wp-content/uploads 

Users/[username]/Documents/workprojects/iis-tech/web/wp-content

很好,但是当我尝试从本地计算机 rsync 到远程服务器时,出现以下错误:

源和目标不能都是远程的。
rsync 错误:语法或使用错误

我运行的命令如下:

rsync -av/Users/[用户名]/Documents/workprojects/[项目文件夹]/web/wp-content/themes/reactify/js/build/

[远程服务器]:web/wp-content/themes/reactify/js/build

为了便于阅读,我将命令分开。

我正在使用 Platform.sh 作为宿主,如果这有所不同,但我认为这不是问题所在。

我之所以感到困惑,是因为我的同事能够成功运行相同的命令。感谢您的帮助!

最佳答案

使用 rsync -av/cygdrive/c..../cygdrive/d/....即把C:换成/cygdrive/c

关于macos - Rsync 错误 : The source and destination cannot both be remote,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49137995/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com