The ScpTask
copies files to and from a remote host using scp. This
task requires the PHP
SSH2 extension to function.
Table 143. Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
host |
String |
Remote host | none | Yes |
port |
Integer |
Remote port | 22 | No |
username |
String |
Username to use for the connection | none | Yes |
password |
String |
Password to use for the connection | none | No |
pubkeyfile |
String |
Public key file (OpenSSH format) to use for the connection | none | No |
privkeyfile |
String |
Private key file (OpenSSH format) to use for the connection | none | No |
privkeyfilepassphrase |
String |
Private key file passphrase to use for the connection | none | No |
autocreate |
Boolean |
Whether to autocreate remote directories | true |
No |
todir |
String |
Directory to put file(s) in | none | No |
file |
String |
Filename to use | none | No |
fetch |
Boolean |
Whether to fetch (instead of copy to) the file | false |
No |
level |
String |
Control the level at which the task reports status messages. One of
error , warning ,
info , verbose ,
debug .
|
verbose |
No |