Differences

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

resume 2018-11-09 resume 2023-12-07 (current)
Line 23: Line 23:
Note that partial files can be distinguished in file panel by special [[ui_file_panel#special_files|"torn sheet" overlay icon]]. Note that partial files can be distinguished in file panel by special [[ui_file_panel#special_files|"torn sheet" overlay icon]].
-To configure transfer to temporary file name in [[scripting]], use ''-resumesupport'' switch of file transfer commands. In .NET assembly use ''[[library_transferoptions#resumesupport|TransferOptions.ResumeSupport]]''.+To configure transfer to temporary file name in [[scripting]], use ''-resumesupport'' ==switch== of file transfer commands (such as [[scriptcommand_put|''put'']], [[scriptcommand_get|''get'']], etc). In .NET assembly use ''[[library_transferoptions#resumesupport|TransferOptions.ResumeSupport]]''.
Transfer to temporary filename is supported with [[sftp|SFTP protocol]] only and only for [[transfer_mode|binary transfers]]. Transfer to temporary filename is supported with [[sftp|SFTP protocol]] only and only for [[transfer_mode|binary transfers]].
Line 30: Line 30:
There's an alternative manual method to resume transfer, which can be used with FTP protocol. There's an alternative manual method to resume transfer, which can be used with FTP protocol.
-If you attempt to transfer a file already in the target directory and the target file is smaller then the source file, the [[ui_overwrite|overwrite confirmation dialog]] displays a //Resume// button or an //Append// button (when appending is supported). After you click //Append//, WinSCP opens another prompt that lets you append source file or resume your transfer.+If you attempt to transfer a file already in the target directory and the target file is smaller then the source file, the [[ui_overwrite|overwrite confirmation dialog]] displays a //Resume// command or an //Append// command (when appending is supported), in the drop-down menu of the //No// button. After you click //Append//, WinSCP opens another prompt that lets you append source file or resume your transfer.
If you resume the transfer, WinSCP will skip a part of the source file equal to the target file's size. The program will only transfer the remainder. If you resume the transfer, WinSCP will skip a part of the source file equal to the target file's size. The program will only transfer the remainder.
Line 38: Line 38:
The method is also useful for resuming transfers initiated by other clients and also to update log files. Manual resuming of [[transfer_mode|text mode transfers]] with SFTP-4 and newer is not supported. The method is also useful for resuming transfers initiated by other clients and also to update log files. Manual resuming of [[transfer_mode|text mode transfers]] with SFTP-4 and newer is not supported.
-===== Common Problems =====+===== [[common_problems]] Common Problems =====
If you want to resume your transfer, you must use the same source file version as the interrupted transfer. If you do not, your target file will include the source file's previous version and its current version. For automatic resume, if the partial file is bigger than the source file, WinSCP will display error and disallow resume. If you want to resume your transfer, you must use the same source file version as the interrupted transfer. If you do not, your target file will include the source file's previous version and its current version. For automatic resume, if the partial file is bigger than the source file, WinSCP will display error and disallow resume.

Last modified: by martin