copy
Syntax
Description
This command copies a local file from the home directory to a remote location.
Options
Parameter | Description | Range | Default Value |
---|---|---|---|
filename | The name of the source file | The name of an existing file in the home directory | – |
protocol:url | The remote location where you want to copy the file | sftp|ftp:// [username@]host [:port]/[filepath] username is the username to use on the remote server. host is the host name or IP address of the remote server. port is the protocol port number to use. filepath is the filepath on the remote server. | If username is not specified, the current CLI session’s login name is used. If port is not specified, the standard default FTP or SFTP port is used. If filepath is not specified, the file is copied to the FTP/SFTP user’s home directory. |
password | The password associated with the specified username If a password is not specified, the system prompts you for a password. Note: The password must contain alphanumeric characters only. | A character string | None |
Required Privilege Level
Related Documentation
Sample Output
bti7800# copy file test.txt remote-url sftp://192.168.0.45
Value for ’password’ (<string>):