« CCNA Voice Exam Debrief | Main | Another Great Resource »
July 19, 2008
Scheduling Periodic Config Backups in IOS
Pretty cool article talking about using kron jobs on a Cisco router to schedule periodic configuration backups.
Posted by JC at July 19, 2008 10:40 AM
Trackback Pings
TrackBack URL for this entry:
http://www.cioara.org/cgi-bin/mt-tb.cgi/285
Comments
Very cool. I've been using the archive command to back up configs to an ftp server when I manually did a wr mem, for some time. I didn't know you could schedule it, and tack on a timestamp.
Cool stuff. Thanks!
Posted by: Dave N at July 19, 2008 7:05 PM
Wouldn't this have the affect of writing the config to your network path every time you did a "wr"? Maybe that's the desired behavior but if you just want timed backups you can probably get more specific in the cli command in the kron. Something like "copy run tftp:blah". It doesn't fix the problem of incrementing copies but it will only run at your desired time.
Then again, you could just use RANCID.
Still, kron has some interesting possibilities...run a "no" to reverse a command you are about to enter that will lock you out. That's better than a "reload in". I might have to try that.
Posted by: Scott at July 20, 2008 2:19 PM
@Scott - that's an excellent thought. I was trying to ponder some other uses for the kron command myself.
Posted by: JC at July 20, 2008 8:27 PM
We use Kiwi Cattools to backup our configs. It logs into each device, checks to see if the config has changed since the last time it was backed up, it stores the new config on the server and then sends us an e-mail report telling us which configs have changed (as well as performs an "exam diff" on the old and new config so you can see at a glance what has changed). It also tells you which devices it could not log into and why. Not a bad program at all.
Posted by: Anonymous at July 20, 2008 9:36 PM
I get this error:
%Error opening tftp:192.168.70.37/companyGW-Jul-21-12:30:44.280-1 (Invalid IP address or hostname)
But my tftp server is ok.
Tried ftp too, no success
Posted by: Josma at July 21, 2008 5:35 AM
@Josma
I can't test it at the moment but isn't the syntax tftp://ip_address. Based on the error you're missing the //
Or do you have to quote the file name since you have odd characters in there?
Posted by: Scott Brooke at July 21, 2008 7:01 AM
Oh man thanks. Thats the error. Can't test it now...
but tomorrow.
But when I am using FTP/TFTP etc I don't have to use "//".
Thanks again.
Posted by: Josma at July 21, 2008 8:15 AM