Differences
This shows you the differences between the selected revisions of the page.
2016-01-22 | 2016-01-22 | ||
switch anchors (martin) | anchors (martin) | ||
Line 8: | Line 8: | ||
===== Remarks ===== | ===== Remarks ===== | ||
- | If only one parameter is specified uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. The last parameter specifies target remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with slash. Filename can be replaced with Windows wildcard ((The Windows wildcard supports ''*'' and ''?'' only. If you want to use a full syntax of [[file_mask|file masks]], use a ''-filemask'' switch.)) to select multiple files. To upload more files to current working directory use ''./'' as the last parameter. To upload all files in a directory, use mask ''*''. | + | If only one parameter is specified uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. The last parameter specifies target remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with slash. Filename can be replaced with Windows wildcard ((The Windows wildcard supports ''*'' and ''?'' only. If you want to use a full syntax of [[file_mask|file masks]], use a ''[[#filemask|-filemask]]'' switch.)) to select multiple files. To upload more files to current working directory use ''./'' as the last parameter. To upload all files in a directory, use mask ''*''. |
When specific file name is used, command fails when the file does not exist. When wildcard is used, command succeeds, without doing anything, if the wildcard does not match any file, by default (you can change this using ''[[scriptcommand_option|option failonnomatch on]]'' command). | When specific file name is used, command fails when the file does not exist. When wildcard is used, command succeeds, without doing anything, if the wildcard does not match any file, by default (you can change this using ''[[scriptcommand_option|option failonnomatch on]]'' command). | ||
Line 18: | Line 18: | ||
| ''-==delete=='' | Delete source local file(s) after transfer. | | | ''-==delete=='' | Delete source local file(s) after transfer. | | ||
| ''-==latest=='' | Uploads the latest file from the files selected by the ''file'', ''file2'' ... parameters (typically [[file_mask|file masks]]) only. &beta_feature | | | ''-==latest=='' | Uploads the latest file from the files selected by the ''file'', ''file2'' ... parameters (typically [[file_mask|file masks]]) only. &beta_feature | | ||
- | | ''-==resume=='' | Automatically resume transfer if possible ((Applies for individual files transfers only. It does not skip transfer of fully transferred files. For that, combine the switch with ''-neweronly''.)) ([[SFTP]] and [[FTP]] protocols only). Cannot be combined with ''-append''. | | + | | ''-==resume=='' | Automatically resume transfer if possible ((Applies for individual files transfers only. It does not skip transfer of fully transferred files. For that, combine the switch with ''[[#neweronly|-neweronly]]''.)) ([[SFTP]] and [[FTP]] protocols only). Cannot be combined with ''[[#append|-append]]''. | |
- | | ''-==append=='' | Append source file to the end of target file ([[sftp|SFTP protocol]] only). Cannot be combined with ''-resume''. | | + | | ''-==append=='' | Append source file to the end of target file ([[sftp|SFTP protocol]] only). Cannot be combined with ''[[#resume|-resume]]''. | |
| ''-==preservetime=='' | Preserve timestamp | | | ''-==preservetime=='' | Preserve timestamp | | ||
| ''-==nopreservetime=='' | Do not preserve timestamp | | | ''-==nopreservetime=='' | Do not preserve timestamp | | ||
Line 32: | Line 32: | ||
Aliases: ''send'', ''mput'' | Aliases: ''send'', ''mput'' | ||
- | Effective [[scriptcommand_option|options]]: ''confirm'', ''reconnecttime'', ''failonnomatch'' | + | Effective [[scriptcommand_option|options]]: ''[[scriptcommand_option#confirm|confirm]]'', ''[[scriptcommand_option#reconnecttime|reconnecttime]]'', ''[[scriptcommand_option#failonnomatch|failonnomatch]]'' |
- | XML log elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#chmod|chmod]]'' (with ''-permissions''), ''[[logging_xml#touch|touch]]'' (with ''-preservetime'') | + | XML log elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#chmod|chmod]]'' (with ''[[#permissions|-permissions]]''), ''[[logging_xml#touch|touch]]'' (with ''[[#preservetime|-preservetime]]'') |
===== Examples ===== | ===== Examples ===== |