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

http://supportwiki.cisco.com/ViewWiki/index.php/Tech_Insights:Periodical_Configuration_Save_of_Cisco_Devices

Posted by JC at July 19, 2008 10:40 AM

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.

http://www.kiwisyslog.com/kiwi-cattools-overview/

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

Nice airtical, i would like to tell all of my friends about it. By the way, i would like to introduce everyone of you a very nice website, it offers cheap air max trainers for men and women. Such as Air max 1, air max 2, air max 90, nike air max 2009+, air max 2010 new, nike air max TN, nike air ltd trainers, air max 95. Dunk SB shoes, nike shox shoes. You can find almost all the nike series there, in huge collection and varies colorways. They have Latest style and classic style. Though their price are low, don't worry about it's quality. They are realll ones!!! I have bought from them for so many times, and very satisfied with the their goods and service. Come on, you'll love it.

Posted by: groupshoes at October 27, 2009 6:06 PM

I do not know what to say, right to the point. Thank You.

Posted by: Production Planning at December 7, 2009 11:25 AM

I do not know what to say, right to the point. Thank You.

Posted by: Advanced Planning and Scheduling at December 7, 2009 2:37 PM

Post a comment




Remember Me?

(you may use HTML tags for style)