FIRST REVIEW—CISCO CONFIDENTIAL
16-22
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Chapter16 Working With Configuration Files
Backing Up and Restoring the Configuration File Using a Remote Server
Backing Up and Restoring the Configuration File Using a Remote Server
Note
We recommend copying the current configuration file to a remote server before upgrading.
Use the copy [/erase] source_url destination_url keyword command to copy the configuration file to a
remote server. You can then restore the current configuration from the remote server. You are prompted
to back up the current configuration first.
The following options apply:
/erase—Erases the destination file before copying.
This keyword only applies to the current-config; the backup-config is always overwritten. If this
keyword is specified for destination current-config, the source configuration is applied to the system
default configuration. If it is not specified for the destination current-config, the source
configuration is merged with the current-config.
source_url—The location of the source file to be copied. It can be a UR L or keyword.
destination_url—The location of the destination file to be copied. It can be a URL or a keyword.
current-config—The current running configuration. The configuration becomes persistent as the
commands are entered.
backup-config—The storage location for the configuration backup.
The exact format of the source and destination URLs varies according to the file. Here are the valid
types:
ftp:—Source or destination URL for an FTP network server. The syntax for this prefix is:
ftp://[[username@]location][/relativeDirectory]/filename
ftp://[[username@]location][//absoluteDirectory]/filename
Note
You are prompted for a password.
scp:—Source or destination URL for the SCP network server. The syntax for this prefix is:
scp://[[username@]location][/relativeDirectory]/filename
scp://[[username@]location][//absoluteDirectory]/filename
Note
You are prompted for a password. You must add the remote host to the SSH known hosts
list.
http:—Source URL for the web server. The syntax for this prefix is:
http://[[username@]location][/directory]/filename
Note
The directory specification should be an absolute path to the desired file.