Parameter | Description | Value |
---|---|---|
local-filename |
Specifies the local file name of the FTP client. |
The value is a string of 1 to 64 case-insensitive characters without spaces. |
remote-filename |
Specifies the name of the file to be uploaded to the remote FTP server. |
The value is a string of 1 to 64 case-insensitive characters without spaces. |
Usage Scenario
You can run the put command to upload a local file to the remote FTP server for further check and backup. For example, you can upload the local log file to the FTP server for other users to check, and upload the configuration file to the FTP server as a backup before upgrading the device.
Precautions
If the file name is not specified on the remote FTP server, the local file name is used.
If the name of the uploaded file is the same as that of an existing file on the FTP server, the system overwrites the existing file.
The file system has a restriction on the number of files in the root directory. Therefore, if more than 50 files exist in the root directory, creating new files in this directory may fail.
# Upload the configuration file vrpcfg.zip to the remote FTP server as a backup, and save it as backup.zip.
<HUAWEI> ftp 10.137.217.201 Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201. 220 FTP service ready. User(10.137.217.201:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[ftp] put vrpcfg.zip backup.zip 200 Port command successful. 150 Opening BINARY mode data connection for file transfer. 226 Transfer complete FTP: 1098 byte(s) sent in 0.131 second(s) 8.38Kbyte(s)/sec.