Save the Configuration
These steps describe how to perform a basic save operation and view the new configuration file.
1. Copy running-config to startup-config:
SWI2210-XXXX# copy running-config startup-config
Building configuration...
% Saving 1326 bytes to flash:startup-config
2. Use the dir command to display the contents of the flash file system.
SWI2210-XXXX# dir
Directory of flash:
r- 1970-01-01 00:00:00 648 default-config
rw 1970-01-03 18:21:28 1326 startup-config
2 files, 1974 bytes total.
3. Enter the more command to output the contents of the startup-config file.
SWI2210-XXXX# more flash:startup-config
hostname SWI2210-XXXX
username admin privilege 15 password encrypted dmVyeS1zZWNyZXQ=
!
vlan 1
name default
[...]
Create a Backup Copy of the Configuration
These steps describe how to make a backup copy of startup-config in the flash file system on the switch
and then make another copy on the host computer.
1. Copy startup-config to a new file. In this example, backup is the name of the new file.
SWI2210-XXXX# copy startup-config flash:backup
Building configuration...
% Saving 1326 bytes to flash:backup
2. Use the dir command to display the contents of the flash file system.
SWI2210-XXXX# dir
Directory of flash:
r- 1970-01-01 00:00:00 648 default-config
rw 1970-01-03 18:21:28 1326 startup-config
rw 1970-01-03 18:21:28 1326 backup
3 files, 3300 bytes total.
3. Enter the more command to output the contents of the backup file.
SWI2210-XXXX# more flash:backup
hostname SWI2210-XXXX
username admin privilege 15 password encrypted dmVyeS1zZWNyZXQ=
!
vlan 1
name default
[...]
4. To store the backup file on the host computer, use the copy command with this syntax:
SWI2210-XXXX# copy backup tftp://<server>[:<port>]/<path-to-file>