02-23-2015 05:17 PM - edited 03-07-2019 10:48 PM
Hi
We got C2960 switch. May I know how to use kron autobackup by using TFTP with timestamp?
Hugo
02-23-2015 05:35 PM
archive log config logging enable hidekeys path tftp://<TFTP IP address>/$h- write-memory time-period 10080
The command above saves the configuration to the TFTP in two ways:
1. When one saves the config; and
2. Every 7 days.
In the TFTP, the file will be saved with time and date stamp as part of the filename.
02-23-2015 06:45 PM
How to change the timestamp format, I got error as follow?
2960G#sh archive
The next archive file will be named tftp://192.168.1.1/2960G-Feb-24-10:33:34-cfg-1
Archive # Name
0
1 :Error - Bad file number
Timestamp config:
service timestamps debug datetime localtime
service timestamps log datetime localtime
02-23-2015 06:51 PM
config t serv time d d s l y serv time l d s l y end
Try that.
02-23-2015 06:55 PM
same , fail
02-23-2015 07:44 PM
same , fail
Wait ... where are you looking at this? You should be looking for the file(s) in your TFTP server and not in the switch.
02-23-2015 09:21 PM
i cannot find backup config in tftp server as well
02-23-2015 11:36 PM
i cannot find backup config in tftp server as well
Save the config of the switch and see what happens to the prompt.
Check if you have a FW stopping TFTP from going through.
02-23-2015 05:36 PM
Hi,
Have a look at this link
Regards
Alex
02-23-2015 11:51 PM
@sunriderhk
Another way to get daily backup is to use kron
archive
path tftp://IP_of_TFTP_SERVER/$h__$t
write-memory
kron occurrence daily-config-backup at 0:05 recurring
policy-list backup-config
!
kron policy-list backup-config
cli write memory
!
Make sure you switch or router time is synced
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide