This method only applies to backing up the configuration file to the local PC.
If configuration content is too long, it may be displayed in two lines on the terminal screen, depending on the terminal software. When copying a two-line configuration from the screen to a .txt file, ensure that the configuration is displayed in only one line. Otherwise, configuration restoration may fail when the .txt file is used.
<HUAWEI> system-view [~HUAWEI] ftp server enable [*HUAWEI] aaa [*HUAWEI-aaa] local-user admin1234 password irreversible-cipher Helloworld@2012 //Set the user name to admin1234 and password to Helloworld@2012. [*HUAWEI-aaa] local-user admin1234 level 3 [*HUAWEI-aaa] local-user admin1234 ftp-directory flash:/ //Set the FTP directory to flash:/. [*HUAWEI-aaa] local-user admin1234 service-type ftp [*HUAWEI-aaa] commit
C:\Windows\System32> ftp 192.168.80.102 Connected to 192.168.80.102. 220 FTP service ready. User (192.168.80.102:(none)): admin1234 331 Password required for admin1234. Password: //Enter the password Helloworld@2012. 230 User logged in. ftp> binary 200 Type set to I. ftp> get vrpcfg.zip 200 Port command okay. 150 Opening BINARY mode data connection for /vrpcfg.zip. 226 Transfer complete. ftp: 905 bytes received in 0.04Seconds 25.86Kbytes/sec.
In the following example, FTP user admin1234 downloads the file vrpcfg.zip to the PC.
Configure the PC as an FTP server.
Create the user name and password for logging in to the FTP server, and set the FTP working directory on the PC.
<HUAWEI> ftp 192.168.80.3 //IP address of the PC Trying 192.168.80.3 ... Press CTRL + K to abort Connected to 192.168.80.3. 220 FTP Server ready. User(192.168.80.3:(none)): admin1234 //User name configured during FTP server configuration (admin1234 as an example) 331 Password required for admin1234. Enter password: //Password configured during FTP server configuration 230 User admin1234 logged in. [ftp] put vrpcfg.zip 200 Port command successful. 150 Opening data connection for vrpcfg.zip. / 100% [***********] 226 File received ok FTP: 14751 byte(s) send in 0.963 second(s) 14.958Kbyte(s)/sec. [ftp]