Backing up configuration files or other files – Cisco ASA 5505 User Manual

Page 1842

Advertising
background image

81-8

Cisco ASA 5500 Series Configuration Guide using the CLI

Chapter 81 Managing Software and Configurations

Backing Up Configuration Files or Other Files

Backing Up Configuration Files or Other Files

This section includes the following topics:

Backing up the Single Mode Configuration or Multiple Mode System Configuration, page 81-8

Backing Up a Context Configuration or Other File in Flash Memory, page 81-8

Backing Up a Context Configuration within a Context, page 81-9

Copying the Configuration from the Terminal Display, page 81-9

Backing Up Additional Files Using the Export and Import Commands, page 81-9

Using a Script to Back Up and Restore Files, page 81-10

Backing up the Single Mode Configuration or Multiple Mode System
Configuration

In single context mode or from the system configuration in multiple mode, you can copy the startup
configuration or running configuration to an external server or to the local flash memory as follows:

To copy to a TFTP server, enter the following command:

hostname# copy {startup-config | running-config} tftp://server[/path]/filename

To copy to a FTP server, enter the following command:

hostname# copy {startup-config | running-config}

ftp://

[user[:password]@]server[/path]/filename

To copy to local flash memory, enter the following command:

hostname# copy {startup-config | running-config} {flash:/ | disk0:/ |

disk1:/

}[path/]filename

Note

Be sure that the destination directory exists. If it does not exist, first create the directory using
the mkdir command.

Backing Up a Context Configuration or Other File in Flash Memory

Copy context configurations or other files that are on the local flash memory by entering one of the
following commands in the system execution space:

To copy to a TFTP server, enter the following command:

hostname# copy disk{0 | 1}:/[path/]filename tftp://server[/path]/filename

To copy to a FTP server, enter the following command:

hostname# copy disk{0 | 1}:/[path/]filename

ftp://

[user[:password]@]server[/path]/filename

To copy to an SMB file-system, enter the following command:

hostname# copy disk{0 | 1}:/[path/]filename

smb://

[user[:password]@]server[/path]/filename

Advertising