Tar Extract - HP Enterprise FlexFabric 12900E Series Command Reference Manual

Hide thumbs Also See for Enterprise FlexFabric 12900E Series:
Table of Contents

Advertisement

Predefined user roles
network-admin
Parameters
: Uses gzip to compress the files and directories before archiving them. If you do not specify this
gz
keyword, the command archives the files and directories without compressing them.
archive-file dest-file
extension of the archive file name must be .tar.gz. If you did not specify the
extension of the archive file name must be .tar.
: Displays the names of the successfully archived files and directories. If you do not specify
verbose
this keyword, the command does not display the names of the successfully archived files and
directories.
source { source-file | source-directory }&<1-5>
to be archived. The argument can be a space-separated list of up to five items. Each item can be a
file or directory name.
Examples
# Archive the 1.cfg and 2.cfg files and the test directory to a.tar.
<Sysname> tar create archive-file a.tar source 1.cfg 2.cfg test
Creating archive flash:/a.tar Done.
# Compress and archive the 1.cfg and 2.cfg files and the test directory to b.tar.gz.
<Sysname> tar create gz archive-file b.tar.gz source 1.cfg 2.cfg test
Creating archive flash:/b.tar.gz Done.
# Compress and archive files and directories, and display the successfully archived files and
directories.
<Sysname> tar create gz archive-file c.tar.gz verbose source 1.cfg 2.cfg test
1.cfg
2.cfg
test/
test/a.log
test/subtest/
test/subtest/aa.log
Related commands

tar extract

tar list
tar extract
Use
tar extract
Syntax
tar extract archive-file file [ verbose ] [ screen | to directory ]
Views
User view
Predefined user roles
network-admin
: Specifies the archive file name. If you specified the
to extract files and directories.
147
gz
gz
: Specifies the files and directories
keyword, the
keyword, the

Advertisement

Table of Contents
loading

Table of Contents