112
Examples
# To configure the configuration archive directory and archive file name prefix as
flash:/archive/
and
my_archive
:
1.
Create the directory on the master.
<Sysname> mkdir archive
.
%Created dir flash:/archive.
2.
Create the directory on IRF member 2. (Repeat this step to create the directory on all IRF members.)
<Sysname> mkdir slot2#flash:/archive
%Created dir slot2#flash:/archive.
3.
Specify the directory as the configuration archive directory, and configure an archive file name
prefix.
<Sysname> system-view
[Sysname] archive configuration location flash:/archive filename-prefix my_archive
Related commands
mkdir
archive configuration max
Use
archive configuration max
to set the maximum number of running-configuration archives.
Use
undo archive configuration max
to restore the default.
Syntax
archive configuration max
file-number
undo archive configuration max
Default
A maximum of five configuration archives can be saved.
Views
System view
Default command level
3: Manage level
Parameters
file-number
: Sets the maximum number of configuration archives that can be saved. The value range is
1 to 10. Change the setting depending on the available storage space.
Usage guidelines
Before you can set a limit on configuration archives, use the
archive configuration location
command to
specify a configuration archive directory and archive file name prefix.
After the maximum number of configuration archives is reached, the system deletes the oldest archive for
the new archive.
Changing the limit setting to a lower value does not cause immediate deletion of exceeding archives.
Instead, the configuration archive function deletes the oldest
n
files when a new archive is manually or
automatically saved, where
n
= current archive count – new archive limit + 1. Suppose seven