Auto Backup Configuration

The Cisco IOS Archive command serves to create archives of Cisco device configuration. These archives can either be created manually or automatically, and can either be stored locally or on external FTP or TFTP server.

Configuration :

In the following example, we will configure an auto backup either weekly or each time the “write” command is executed. The configuration will be stored on a TFTP server with filename = hostname of the device with a sequence number:

!
router(config)#archive
router(config-archive)# path tftp://172.16.254.1/$h
router(config-archive)# time-period 10080
router(config-archive)# write-memory
router(config-archive)#end
router#
!

We can browse in the TFTP server about backup files, or use the “show archive” command in order to see and locate backup files:

Core-SW#show archive
The next archive file will be named
tftp://172.16.254.1/Core-SW-17
Archive #  Name
0       tftp://192.168.217.1/Core-SW-9
1       tftp://192.168.217.1/Core-SW-10
2       tftp://192.168.217.1/Core-SW-11
3       tftp://192.168.217.1/Core-SW-12
4       tftp://192.168.217.1/Core-SW-13
5       tftp://192.168.217.1/Core-SW-14
6       tftp://192.168.217.1/Core-SW-15
7       tftp://192.168.217.1/Core-SW-16 <- Most Recent

Note:

We can restore any configuration file using: “copy tftp://192.168.217.1/Core-SW-10 startup-config” command and reload the device.

Useful Links:


no comment


    Add Your Comment