Transferring files to a remote location is the main purpose of this action. It supports the default FTP protocol, as well as secure connections using SSH.
The following protocols are available and can be selected in the configuration dialog:
The connection to the FTP server is established using the selected protocol. The following options have to be set in the configuration dialog of the task.
The public/private key authentication can be used with the Secure FTP protocol. The private key has to be pasted in full length into the text field. It will only be displayed once and is stored with an additional encryption together with the Taskplaner task configuration. If the private key is secured with a password, it has to be set as well and will also be stored encrypted.
Note: Errors with the encryption keys may be a hint on the wrong format of the key. It is then required to change to format to an RSA or PEM format and should look like the following block:
-----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----
Using OpenSSH and ssh-keygen
on supported systems, the following commands can be used:
[dev@localhost] $ ssh-keygen -t rsa -b 4096 -C "<User Note>" # Generating public/private rsa key pair. # Enter file in which to save the key (/Users/dev/.ssh/id_rsa): # Enter passphrase (empty for no passphrase): # Enter same passphrase again: # Your identification has been saved in /Users/dev/.ssh/id_rsa. # Your public key has been saved in /Users/dev/.ssh/id_rsa.pub. # ... [dev@localhost] $ ssh-keygen -p -f /Users/dev/.ssh/id_rsa -m pem # ...
The target path determines the location where the files will be stored at the FTP server side. Directories that do not exist will be created.
The File Name Format is a pattern for the name of the file(s) that will be saved.
There are three placeholders to dynamically determine the resulting file name:
[filename]
- the name of the file as generated by a job[date]
- the date, when the job was executed[time]
- the time at which the job was executedNote: the File Name Format must not define the file extension. The extension will be added at the end.
Pattern: [filename] [date] [time] File Input: abc.pdf File Output: abc 2017-04-07 09-45.pdf Path Input: abc/def.pdf Path Output: abc 2017-04-07 09-45/def.pdf