Automatic Config Archiving

From Baranoski.ca
Revision as of 12:58, 17 June 2013 by Casey (talk | contribs) (Created page with "A Cisco router can automatically copy its config to a TFTP server when doing a '''write memory''' or on a predetermined interval. It automatically keeps the file names of up ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A Cisco router can automatically copy its config to a TFTP server when doing a write memory or on a predetermined interval. It automatically keeps the file names of up to 15 revisions. This is very handy when combined with Configure Replace.

archive
 log config
  hidekeys
 path tftp://10.10.10.5/$h-autoarchive-$t
 write-memory

$h is automatically replaced with the hostname, and $t with the timestamp.


Example

ROUTER#show archive
The maximum archive configurations allowed is 14.
The next archive file will be named tftp://10.10.10.5/ROUTER-autoarchive-Jun-17-13:53:36.731-EDT-19
 Archive #  Name
   1        tftp://10.10.10.5/ROUTER-autoarchive-May-13-22:54:50.924-EDT-9
   2        tftp://10.10.10.5/ROUTER-autoarchive-May-14-00:08:13.761-EDT-10
   3        tftp://10.10.10.5/ROUTER-autoarchive-May-21-09:11:36.401-EDT-11
   4        tftp://10.10.10.5/ROUTER-autoarchive-May-27-09:31:10.138-EDT-12
   5        tftp://10.10.10.5/ROUTER-autoarchive-May-29-10:11:35.187-EDT-13
   6        tftp://10.10.10.5/ROUTER-autoarchive-Jun--6-22:59:05.218-EDT-14
   7        tftp://10.10.10.5/ROUTER-autoarchive-Jun--7-22:25:48.223-EDT-15
   8        tftp://10.10.10.5/ROUTER-autoarchive-Jun--7-22:40:00.973-EDT-16
   9        tftp://10.10.10.5/ROUTER-autoarchive-Jun--9-15:08:47.435-EDT-17
   10       tftp://10.10.10.5/ROUTER-autoarchive-Jun-16-22:06:53.605-EDT-18 <- Most Recent