cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4092
Views
0
Helpful
2
Replies

Router backup

vaib7av.shirkul
Level 1
Level 1

Hi all,


How to take backup (sh run) of router automatically (weekly) on a perticular server?


Its about 900+ branches.

Pl suggest,

2 Replies 2

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi all,


How to take backup (sh run) of router automatically (weekly) on a perticular server?


Its about 900+ branches.

Pl suggest,

Hi vaibhav,

Krone policy backup is the option in cisco routers to have automatic scheduled backup for configuration.

Use the command scheduler

For example, let's say you want to automatically back up your router's running configuration (in RAM) to the startup configuration (in NVRAM) every Monday night at 10 P.M. You might want to make sure that the system is preserving router changes, even if the router losses power--and even if someone forgets to save his or her changes. The new IOS command scheduler makes this a relatively easy task.


First, create a kron policy list. Essentially, this policy list serves as your "script," which lists what you want the router to run at a scheduled time.

Example configuration
Router(config)# kron policy-list backup
Router(config-kron-policy)# cli write | redirect

tftp://tftp ip address/router.cfg
Router(config-kron-policy)# exit


Next, create a kron occurrence, in which you tell the router when and how often you want to run this policy list (i.e.,group of commands). Here's an example:


Router(config)# kron occurrence backup at 22:00 Mon recurring
Router(config-kron-occurrence)# policy-list backup


This code sets up your backup job to run every Monday night at 10 P.M. (22:00 in military time).Finally, verify that you've entered everything correctly by using the show command.

Router# show kron schedule

Kron Occurrence Schedule

backup inactive, will run again in 2 days 22:03:46 at 22:00 on Mon

Router# show running-configuration

kron occurrence backup at 22:00 Mon recurring

policy-list backup

!

kron policy-list backup

cli write

Make sure tftp server should be enabled at the scedule time for backup.

Hope to help

If helpful do rate the post

Ganesh.H

If your IOS supports it:

archive

How to configure it:

conf t

ip ftp source-interface ZZZ
ip ftp username YYY
ip ftp password XXX

archive
log config
  logging enable
  logging size 200
path ftp://server_IP/filename.txt
write-memory
time-period 10080

What does this do?

path ftp://server_IP/filename.txt => Where to save the file (The router will save the file with extension .txt1, .txt2, .txt3....)

logging size 200 => last 200 commands will be rememberd and with "show archive log config all" you can see WHO (if you use TACACS) ad what was configured.

write-memory => when you perform a "wr mem" or a "copy run start" the config will be written to the ftp server.

time-period 10080 => every week, the config will be written to the FTP server.

This is in my opinion the easiest way to backup configs as it saves your config whenever you perform a write AND on a time schedule.

As it is built in in IOS, you don't need to purchase extra software and most companies have an FTP server.

Hope this helps.

Review Cisco Networking for a $25 gift card