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.
How to change the timestamp format, I got error as follow?
The next archive file will be named tftp://192.168.1.1/2960G-Feb-24-10:33:34-cfg-1
Archive # Name
1 :Error - Bad file number
service timestamps debug datetime localtime
service timestamps log datetime localtime
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.
Have a look at this link
Another way to get daily backup is to use kron
kron occurrence daily-config-backup at 0:05 recurring
kron policy-list backup-config
cli write memory
Make sure you switch or router time is synced