Extracting Files From An Archive File; Displaying The Filenames In An Archive File - Cisco MDS 9000 Series Configuration Manual

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

Advertisement

Using the Device File Systems, Directories, and Files
The archive filename is not case sensitive.
Note
To add files to an existing archive file, run the following command:
tar append {bootflash: | volatile:}archive-filename [absolute] [remove] [verbose] filename-list
Example:
switch# tar append bootflash:config-archive.tar.gz bootflash:new-config
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 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.

Extracting Files from an Archive File

You can extract files from an existing archive file on a device.
The archive filename is not case sensitive.
Note
To extract files from an existing archive file, run the following command:
tar extract {bootflash: | volatile:}archive-filename [keep-old] [screen] [to {bootflash: |
volatile:}[/directory-name]] [verbose]
Example:
switch# tar extract bootflash:config-archive.tar.gz
The keep-old keyword indicates that the software should not overwrite files with the same name as the files
being extracted.
The screen keyword specifies that the software should display the contents of the extracted files to the terminal
screen.
The to keyword specifies the target file system. You can include a directory name. The directory name is
alphanumeric, case sensitive, and can have a maximum of 240 characters.
The verbose keyword specifies that the software should display the names of the files as they are extracted.

Displaying the Filenames in an Archive File

The archive filename is not case sensitive.
Note
To display the file names in an archive file, run the following command:
tar list {bootflash: | volatile:}archive-filename
OL-29291-02
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
Extracting Files from an Archive File
109

Advertisement

Table of Contents
loading

Table of Contents