Cisco IOS Archiving for Configuration Backup

Configuration backup is an important part of network administration. When there are multiple nodes (routers/switches) in a network, some kind of automation is needed to take regular backups. Apart from third party applications like rancid (free) and Kiwi CatTools (free/paid), you can use Cisco's IOS archiving feature for regular configuration backups. In this article, we'll configure a Cisco router to send configuration backup to a FTP server.


First we need to configure the FTP parameters, so that router can authenticate to FTP server.
Router1(config)# ip ftp username ftpuser
Router1(config)# ip ftp password ftppass

Now configure the archive section to define the backup path and schedule.
archive
 path ftp://192.168.100.10/$h_$t.conf
 write-memory
 time-period 1440
In the above commands, write-memory command will trigger the configuration backup whenever someone writes the configuration to nvram. And the time-period 1440 commands will instruct the router to take the configuration backup at every 24hrs.



You should get the backup configuration files in the below name format on the FTP server.
Router1_-Nov--4-03-29-47.807.conf-1

where, Router1 is hostname of the router,
Nov is the month
4 is the day
03 is the time in hours
29 is the time in minutes
47 is the time in seconds
& 807 is the time in milliseconds





Comments

Popular posts from this blog

Anyconnect SSL-Client VPN with Self-signed Certificate on Cisco ASA

Filtering Routes in BGP using Route-maps and Prefix-list

Open Shortest Path First (OSPF)

IKEv2 IPsec Site-to-Site VPN configuration on Cisco ASA 8.4(x)

IPsec VPN as a Backup for Point-to-Point Link using IP SLA

Border Gateway Protocol (BGP)

Cisco ASA Active/Active Failover Configuration

Bypassing Proxy Server in Google Chrome

Cisco ASA Active/Standby Failover Configuration