Using ‘archive’ to archive working cisco configurations

Do you have backups of your working configurations?

Just a short weekend post, now that you have time to go over your configuration backups.
You can use the Cisco ‘archive’ command in global configuration mode to let the Cisco switch or router automatically save backups of your configuration file to a TFTP, FTP, HTTP HTTPS, SCP or RCP filesystem.

To configure automatic backup on to for example a TFTP server on write-memory just do this:

Switch(config)# archive
Switch(config-archive)# path tftp://10.0.0.1/ciscobackups/Switch
Switch(config-archive)# write-memory

The switch or router will now automatically archive a copy of your running configuration on 10.0.0.1

You can use show archive to verify backups.

Switch# show archive
The next archive file will be named tftp://10.0.0.1/ciscobackups/Switch-3
Archive # Name
0 tftp://10.0.0.1/ciscobackups/Switch-1
1 tftp://10.0.0.1/ciscobackups/Switch-2 <- Most Recent

And you can also use the EXEC command ‘configure replace‘ to take use of archived configuration files and rollback on to one of them.

Have a nice weekend punching out archives!

No Comments

(Required)
(Required, will not be published)