81-10
Cisco ASA 5500 Series Configuration Guide using the CLI
Chapter81 Managing Software and Configurations
Backing Up Configuration Files or Other Files
hostname # show import webvpn plug-in
ica
rdp
ssh, telnet
vnc
Step2 Run the export command for the file that you want to back up (in this example, the rdp file):
hostname # export webvpn plug-in protocol rdp tftp://tftpserver/backupfilename
Using a Script to Back Up and Restore Files
You can use a script to back up and restore the configuration files on your ASA, including all extensions
that you import via the import webvpn CLI, the CSD configuration XML files, and the DAP
configuration XML file. For security reasons, we do not recommend that you perform automated
backups of digital keys and certificates or the local CA key.
This section provides instructions for doing so and includes a sample script that you can use as is or
modify as your environment requires. The sample script is specific to a Linux system. To use it for a
Microsoft Windows system, you need to modify it using the logic of the sample.
Note The existing CLI lets you back up and restore individual files using the copy, export, and import
commands. It does not, however, have a facility that lets you back up all ASA configuration files in one
operation. Running the script facilitates the use of multiple CLIs.
This section includes the following topics:
Prerequisites, page 81-10
Running the Script, page81-10
Sample Script, page 81-11

Prerequisites

To use a script to back up and restore an ASA configuration, first perform the following tasks:
Install Perl with an Expect module.
Install an SSH client that can reach the ASA.
Install a TFTP server to send files from the ASA to the backup site.
Another option is to use a commercially available tool. You can put the logic of this script into such a
tool.

Running the Script

To run a backup-and-restore script, perform the following steps:
Step1 Download or cut-and-paste the script file to any location on your system.
Step2 At the command line, enter Perl scriptname, where scriptname is the name of the script file.
Step3 Press Enter.