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.
 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.

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


Popular posts from this blog

Specifying SSH port in Ansible Inventory

Ansible-Playbook to display output of multiple show commands (using stdout_lines with Loop)

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

Ansible Playbook for Network OS Upgrade with pre and post checks

Bypassing Proxy Server in Google Chrome

VMware NSX Traffic Flow — East-West & North-South

Export or Backup Azure Network Security Groups into CSV using PowerShell

Ansible-playbook for backing up running config of Cisco IOS