07-06-2015 11:38 AM
Does someone have a script that backups up the ASA configuration and all the "extra" files (like 'dap.xml') that runs from 'cron' or equivalent?
The ASDM has a manual backup command that seems to get most (all?) of the locally modified files, but can that be automated somehow?
There is also a 'backupasa' script in the ASA CLI manual, but it misses some files.
Thanks,
Mike
07-06-2015 01:37 PM
The new (as of 9.3(2)) "backup" cli command should get everything that ASDM does. It includes the DAP files, VPN profiles, AnyConnect client image packages etc. Reference.
You can automate that using EEM (available since 9.2(1) - Reference). It would look something like this (substituting your local values in the backup command syntax):
event manager applet dailybackup description "Backup the ASA at midnight" event timer absolute time 0:00:00 output none action 1 cli command "backup [ /noconfirm ] [ context name ] [ cert-passphrase value ] [ location path ]"
07-07-2015 08:13 AM
Thanks - I'll check those out!
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