Differences

This shows you the differences between the selected revisions of the page.

faq_fxp 2016-12-05 faq_fxp 2024-02-28 (current)
Line 1: Line 1:
====== Can I transfer files between two remote servers with WinSCP? ====== ====== Can I transfer files between two remote servers with WinSCP? ======
-===== To transfer files between the two servers via local workstation =====+===== [[via_local]] To transfer files between the two servers via local workstation =====
See documentation to learn how to [[task_move_duplicate#duplicate|duplicate files between sessions]]. See documentation to learn how to [[task_move_duplicate#duplicate|duplicate files between sessions]].
 +
 +There is also an extension to [[extension_synchronize_another_server|synchronize files between servers]].
===== To transfer files directly from one server to another ===== ===== To transfer files directly from one server to another =====
This feature is not built into WinSCP, for reasons listed further down. Yet, there are ways to utilize some advanced features of WinSCP to achieve the task. This feature is not built into WinSCP, for reasons listed further down. Yet, there are ways to utilize some advanced features of WinSCP to achieve the task.
-==== Pushing files with custom command ==== +==== [[custom_command]] Pushing files with custom command ==== 
-With SFTP and SCP protocols, you can push the selected remote files to another server using [[custom_commands#fxp|scp custom command]].+With the [[SFTP]] and [[SCP]] protocols, you can push the selected remote files to another server using the [[custom_commands#fxp|''scp'' custom command]].
==== Pulling files with remote command ==== ==== Pulling files with remote command ====
-With SFTP and SCP protocols, you can use suitable [[remote_command|remote command]] to download files to the remote server from another server. E.g.:+With the %%SFTP%% and %%SCP%% protocols, you can use a suitable [[remote_command|remote command]] to download files to the remote server from another server. E.g.:
<code> <code>
wget ftp://username:password@otherhost:/path/file ./ wget ftp://username:password@otherhost:/path/file ./
Line 17: Line 19:
==== Reasons why the feature is not built into ==== ==== Reasons why the feature is not built into ====
-  * [[SFTP]] protocol does not allow this. +  * The [[SFTP]] protocol does not allow this. 
-  * With [[SCP]] protocol it may be theoretically possible. However it has many drawbacks. It would require not only major changes in WinSCP, but also many configuration changes on both servers to allow authenticate on the second server from the first one (note that it would not be possible to use an interactive password authentication). See [[custom_commands#fxp|scp custom command]] for details. So practically it would have advantage for advanced users only, who can use the "custom command" solution easily. +  * With the [[SCP]] protocol it may be theoretically possible. However it has many drawbacks. It would require not only major changes in WinSCP, but also many configuration changes on both servers to allow authentication on the second server from the first one (note that it would not be possible to use an interactive password authentication). See the [[custom_commands#fxp|scp custom command]] for details. So practically it would have advantage for advanced users only, who can use the "custom command" solution easily. 
-  * [[FTP]] protocol has an FXP extension that allows this, but it is not supported by WinSCP. [[bug>309]]+  * The [[FTP]] protocol has an [[wp>File_eXchange_Protocol|FXP extension]] that allows this, but it is disabled on majority of FTP servers. [[bug>309]]

Last modified: by martin