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

Switch Backup Config to TFTP Server

davidhuynh5
Level 1
Level 1

Using native IOS on Catalyst 45xx switches, is there a way to perform an automatic backup of the configuration to a TFTP server every 24 hrs? Right now, it is done manually with the write net command to our TFTP server (10.1.1.1). When I go into global config, the command archive is not available. I also checked to see if the IOS could be upgraded, but most of the 45xx only goes to 12.2. Thanks in advance.

2 Replies 2

Lucien Avramov
Level 10
Level 10

I am not sure if you have the archive feature on your device, but you may want to check:

archive

path tftp://10.1.1.1/configs/$h-$t

maximum 14

time-period 60

write-memory

With this config, the device will write a new file to TFTP with the name HOSTNAME-DATE-X where HOSTNAME is the hostname of the device, DATE is the current date/time, and X is a number from 0 to 14. Config archives will be taken periodically every hour, or whenever a write mem is executed.

Lucien Avramov
Level 10
Level 10

Ok, if archive doesnt work, how about a kron job?

kron occurrence backupp in 1 recurring

policy-list backup

!

kron policy-list backup

cli show startup | redirect tftp://10.130.100.196/ban-core12.cfg

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco