05-05-2022 11:07 AM
Hello,
I run a scheduled EEM script on my ASA to backup the running-config which works just fine except for a minor issue. When the file gets backs up, it replaces the former file there because of same name. This works in contrast with what I have running on my other iOS routers which I use "archive" for for the config backup. It automatically renames each file that's being backed up by adding date and time but the ASA backup does not work as such.
I need help with adding time stamps to the backup so new backups don't replace the old. Script below;
event manager applet BackupASAConfig
event timer absolute time 21:55
action o cli command "copy /noconfirm running-config ftp://10.12.9.14/ASAConfigs/ASA_01"
output none
Anticipating help.
Thank you
05-05-2022 11:40 AM
I used the below when i was testing: please check if that is useful :
https://www.balajibandi.com/?p=1554
09-12-2022 06:30 AM
Thanks Balaji.
I tried this solution but it didn't work. For example, the ASA does not have the "puts" or "regexp" commands. I have been manually renaming my backup files since I posted this.
09-12-2022 08:29 AM - edited 09-12-2022 08:35 AM
sure EEM has limited in ASA.
that is the reason i use outof the box backup from Linux as below :
https://www.balajibandi.com/?s=backup
look below thread also helpful - copy to flash and rename with time and date and upload to backup
https://community.cisco.com/t5/network-security/asa-backup-using-cli/m-p/3927658
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