--- title: "copy file by sftp()" slug: "system-sftp-copy-file" updated: 2026-08-17T09:03:25Z published: 2026-08-17T09:03:25Z canonical: "docs.lobstersoftware.com/system-sftp-copy-file" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # copy file by sftp() This function can be used to copy a file **d** from an SFTP server **a**. The file is either stored locally, see parameter **e**, or in an SMB share via an "SMB" Channel, see parameter **g**. Optionally, the file can be deleted from the server afterwards, see parameter **f**. The return value of the function is "true" if successful, otherwise "false". ## Parameters | Parameter | Description | | --- | --- | | a | URL of SFTP server. | | b | SFTP server port. | | c | ID of "SSH" channel (with subtype "SFTP"). | | d | Path of source file (on SFTP server). | | e | Path of destination file (on Integration Server). | | f | (optional) "true", to delete the file from the SFTP server afterwards. Default: "false". | | g | (optional) ID of an "SMB" channel. | ## Example | Parameter a | b | c | d | e | f | g | | --- | --- | --- | --- | --- | --- | --- | | example.com | 22 | 1701845163631048 | ./somefile.txt | ./myfile.txt | | | A central data record in partner management that consolidates the connection parameters for a communication partner, such as the URL, access credentials, and protocol. Changes to a channel immediately affect all profiles, ASM entries, and content inspection entries that use that channel. The Integration Server is the central runtime component of the Lobster Data Platform. It executes integration processes and processes data. The Integration Server stores local certificates and uses their private keys for signing and decryption. It provides all communication services (e.g., FTP, SMTP, HTTP) and connects the application to the database. It is managed via the Admin console.