NAnt
Help
Task Reference
<scp> |
NAnt.Contrib.Tasks () |
Copies a file using scp to a remote server.
Copies a file using scp to a remote server.
The Username Environment variable is used.
| Attribute | Type | Description | Required |
|---|---|---|---|
| file | string | The file to transfer | True |
| server | string | The server to send the file to. | True |
| basedir | string | The directory in which the command will be executed. | False |
| options | string | The command line arguments. | False |
| path | string | The path on the remote server.
Defaults to "~". |
False |
| program | string | The program to execute, default is "scp". | False |
| program-path-sep | string | The Path Seperator used by the program.
Defaults to "/" |
False |
| user | string | The username to connect as.
Defaults to USERNAME environment var. |
False |
| failonerror | bool | False | |
| if | bool | False | |
| timeout | int | False | |
| unless | bool | False | |
| verbose | bool | False |
| Attribute | Type | Description | Required |
|---|---|---|---|
| exename | string | False | |
| useruntimeengine | bool | False |
Copy a single file to a remote server and path.
<scp file="myfile.zip" server="myServer" path="~" />
This basically turns into "scp myfile.zip user@mySerer:~/myfile.zip".