sendfile
Sends a file to a remote server via FTP using an ip address or hostname. It is advisable to set the onfail attribute to "True" so if the file transfer fails when a server is down the profile execution will not stop.
Attributes:
- localfile: the path and filename of the file to be sent
- remotefile: the path and filename where the file should be placed on the server
- username: the FTP username for the remote server
- password: the FTP password for the remote server
- ip: the IP address of the remote server
- hostname: the hostname of the remote server (note: either hostname or ip must be included)
- sftp: True to use SFTP, False for regular FTP
Examples:
<sendfile localfile="data/collection.txt" remotefile="collection.txt" username="username" password="mypassword" ip="192.168.1.100" onfail="true" />
<sendfile localfile="data/collection.txt" remotefile="collection.txt" username="username" password="mypassword" hostname="mywebsite.com" onfail="true" />