Creating An Archive Files - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Creating an Archive Files

Creating an Archive Files
You can create an archive file and add files to it. You can specify the following compression types:
• bzip2
• gzip
• Uncompressed
The default is gzip.
SUMMARY STEPS
1. tar create {bootflash: | volatile:}archive-filename [absolute] [bz2-compress] [gz-compress] [remove]
[uncompressed] [verbose] filename-list
DETAILED STEPS
Command or Action
Step 1
tar create {bootflash: |
volatile:}archive-filename
[absolute] [bz2-compress]
[gz-compress] [remove]
[uncompressed] [verbose]
filename-list
This example shows how to create a gzip compressed archive file:
switch# tar create bootflash:config-archive gz-compress bootflash:config-file
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
116
Purpose
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.
Using the Device File Systems, Directories, and Files
OL-30890-01

Advertisement

Table of Contents
loading

Table of Contents