111
archive configuration location
Use
archive configuration location
to configure the directory and file name prefix for archiving the
running configuration.
Use
undo archive configuration location
to restore the default.
Syntax
archive configuration location
directory
filename-prefix
filename-prefix
undo archive configuration location
Default
No configuration archive directory or configuration archive file name prefix has been set.
Views
System view
Default command level
3: Manage level
Parameters
directory
: Specifies a configuration archive directory, a case-insensitive string of 1 to 63 characters. The
directory must take the format
storage-media-name
:/
folder-name
. This directory must already exist on the
device. In an IRF fabric, this directory must already exist on the master.
filename-prefix
: Specifies a file name prefix for configuration archives, a case-insensitive string of 1 to 30
characters. Valid characters are letters, digits, underscores (_), and hyphens (-).
Usage guidelines
Before archiving the running configuration, either manually or automatically, you must configure a
directory and file name prefix for configuration archives.
In an IRF fabric, the configuration archive function saves running configuration only on the master device.
To make sure the system can archive running configuration after a master/subordinate switchover, create
the directory on all IRF members.
Configuration archives take the file name format
prefix
_
serial number
.cfg
, for example,
20080620archive_1.cfg
and
20080620archive_2.cfg
. The serial number is automatically assigned from
1 to 1000, increasing by 1. After the serial number reaches 1000, it restarts from 1.
After you change the file directory or file name prefix, or reboot the device, all of the following events
occur:
•
The old configuration archives are regarded as common configuration files.
•
The configuration archive counter is reset.
•
The
display archive configuration
command no longer displays the old configuration archives.
•
The serial number for new configuration archives starts at 1.
The
undo archive configuration location
command removes the configuration archive directory and file
name prefix settings. The command also performs the following tasks:
•
Disables the configuration archive function (both manual and automatic methods).
•
Restores the default settings of the
archive configuration interval
and
archive configuration max
commands.
•
Clears all configuration archives.