Working With Archive Files; Creating An Archive File; Appending Files To An Archive File - Cisco MDS 9000 Series Configuration Manual

Hide thumbs Also See for MDS 9000 Series:
Table of Contents

Advertisement

Working with Archive Files

The filename prefix is case sensitive.
Note
Working with Archive Files

Creating an Archive File

You can create an archive file and add files to it. You can specify the following compression types:
• bzip2
• gzip
• Uncompressed
The default compression type is gzip.
The filename is alphanumeric, not case sensitive, and can have a maximum of 240 characters.
Note
To create an archive file and add files to it, run the following command:
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
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 to use
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 default extensions 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 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 software should list the files as they are added to the archive. By
default, the files are listed as they are added.

Appending Files to an Archive File

You can append files to an existing archive file on a device.
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
108
Using the Device File Systems, Directories, and Files
OL-29291-02

Advertisement

Table of Contents
loading

Table of Contents