06-14-2023 11:47 AM
Hello,
I'm trying to find out if there is any way to get a backup of an ASA via CLI similar to the ASDM methods, The backup from ASDM includes everything from the PSKs to the anyconnect session, etc.
regards,
Solved! Go to Solution.
06-14-2023 11:54 AM
@fang-man yes you can
backup [/noconfirm] [context ctx-name] [interface name] [passphrase value] [location path]
ciscoasa# backup location disk0:/sample-backup]
Backup location [disk0:/sample-backup]?
Each backup file includes the following content:
Running-configuration
Startup-configuration
All security images
Cisco Secure Desktop and Host Scan images
Cisco Secure Desktop and Host Scan settings
AnyConnect (SVC) client images and profiles
AnyConnect (SVC) customizations and transforms
Identity certificates (includes RSA key pairs tied to identity certificates; excludes standalone keys)
VPN pre-shared keys
SSL VPN configurations
Application Profile Custom Framework (APCF)
Bookmarks
Customizations
Dynamic Access Policy (DAP)
Plug-ins
Pre-fill scripts for connection profiles
Proxy Auto-config
Translation table
Web content
Version information
06-14-2023 11:54 AM
@fang-man yes you can
backup [/noconfirm] [context ctx-name] [interface name] [passphrase value] [location path]
ciscoasa# backup location disk0:/sample-backup]
Backup location [disk0:/sample-backup]?
Each backup file includes the following content:
Running-configuration
Startup-configuration
All security images
Cisco Secure Desktop and Host Scan images
Cisco Secure Desktop and Host Scan settings
AnyConnect (SVC) client images and profiles
AnyConnect (SVC) customizations and transforms
Identity certificates (includes RSA key pairs tied to identity certificates; excludes standalone keys)
VPN pre-shared keys
SSL VPN configurations
Application Profile Custom Framework (APCF)
Bookmarks
Customizations
Dynamic Access Policy (DAP)
Plug-ins
Pre-fill scripts for connection profiles
Proxy Auto-config
Translation table
Web content
Version information
06-14-2023 11:59 AM - edited 06-14-2023 12:06 PM
@Rob Ingram suggestion is better than my.
His command can you backup password and start and running config.
Thanks
MHM
06-14-2023 03:15 PM
Thank you @Rob Ingram & @MHM Cisco World for your feedback.
06-25-2023 11:44 AM
I just had the opportunity to build a lab and test the given command (I'm building a script to automate our internal backup job).
When using backup location tftp://ip.ip.ip.ip/backup I get a blank file in my tftp server path. no luck with renaming it to backup.zip (this is the format generated by asdm). I also tried to save it as backup.zip and backup.tar.gz (this format is mentioned in the whitepaper), but none of them seems to work. Do you guys have any idea about the output file format?
Thanks in advance.
06-25-2023 11:51 AM
Can you share exactly the command you use
06-25-2023 12:10 PM
the above was the exact command I used: backup location tftp://ip.ip.ip.ip/backup
After more tries and using the file name with no extension (backup), I see that with 7zip I decompress the first file (backup) which gives another file named backup, and after decompressing this second one I can see my data. Such a weird behavior compared to the asdm backup.
06-25-2023 12:13 PM
So you sucess' this issue is solved and close?
MHM
06-25-2023 12:19 PM
I think so. thanks for your assistance.
06-25-2023 12:20 PM
You are so welcome
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