将远程源文件复制到远程目标文件夹
copying file of remote source to remote target folder
我需要将文件从远程服务器复制到同一个远程服务器,但带宽有限。我决定用 scp 这样做。
scp -l 8000 myuser@myserver:/my/source/path/myfile.data myuser@myserver:/my/target/path/
所以现在我的问题是:文件流是否会从远程服务器传输到我的本地计算机,然后再返回到远程服务器?
来自scp
man page:
-3 Copies between two remote hosts are transferred through the
local host. Without this option the data is copied directly
between the two remote hosts. Note that this option disables
the progress meter.
所以不,除非您指定 -3
标志,否则数据不会通过您的本地计算机传输。请参阅 this superuser post 了解您可能想要或不想这样做的原因。
我需要将文件从远程服务器复制到同一个远程服务器,但带宽有限。我决定用 scp 这样做。
scp -l 8000 myuser@myserver:/my/source/path/myfile.data myuser@myserver:/my/target/path/
所以现在我的问题是:文件流是否会从远程服务器传输到我的本地计算机,然后再返回到远程服务器?
来自scp
man page:
-3 Copies between two remote hosts are transferred through the
local host. Without this option the data is copied directly
between the two remote hosts. Note that this option disables
the progress meter.
所以不,除非您指定 -3
标志,否则数据不会通过您的本地计算机传输。请参阅 this superuser post 了解您可能想要或不想这样做的原因。