Step 1 |
tar
create {bootflash: |
volatile:}archive-filename [absolute] [bz2-compress] [gz-compress] [remove] [uncompressed] [verbose]
filename-list
Example:
switch# tar create bootflash:config-archive gz-compress bootflash:config-file
|
Creates an
archive file and adds files to it. The filename is alphanumeric, not case
sensitive, and has a maximum length of 240 characters.
The
absolute
keyword specifies that the leading backslash characters (\) should not be
removed from the names of the files added to the archive file. By default, the
leading backslash characters are removed.
The
bz2-compress,
gz-compress,
and
uncompressed
keywords determine the compression utility used when files are added, or later
appended, to the archive and the decompression utility to use when extracting
the files. If you do not specify an extension for the archive file, the
defaults are as follows:
-
For
bz2-compress,
the extension is .tar.bz2.
-
For
gz-compress,
the extension is .tar.gz.
-
For
uncompressed,
the extension is .tar.
The
remove keyword
specifies that the Cisco NX-OS software should delete the files from the file
system after adding them to the archive. By default, the files are not deleted.
The
verbose keyword
specifies that the Cisco NX-OS software should list the files as they are added
to the archive. By default, the files are listed as they are added.
|