diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-21 17:05:28 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-22 19:57:20 +0900 |
commit | d06fc9e5e4a47d022188d4b10202873c5d995b6e (patch) | |
tree | 759c5fc5ec8e4a5fc1b35e8867ecb160100596d8 /tar/bsdtar.1 | |
parent | 877654feb4ebc4cfd3da33fb0582d1147a21e6d1 (diff) | |
download | libarchive-d06fc9e5e4a47d022188d4b10202873c5d995b6e.tar.gz |
Introduce -a/--auto-compress option into bsdtar.
This automatically decides on a creation format and filters by
the archive suffix.
Diffstat (limited to 'tar/bsdtar.1')
-rw-r--r-- | tar/bsdtar.1 | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tar/bsdtar.1 b/tar/bsdtar.1 index ff8665a4..2297c350 100644 --- a/tar/bsdtar.1 +++ b/tar/bsdtar.1 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 7, 2012 +.Dd October 22, 2012 .Dt TAR 1 .Os .Sh NAME @@ -144,6 +144,26 @@ pax-format archive on stdout. In this way, .Nm can be used to convert archives from one format to another. +.It Fl a , Fl Fl auto-compress +(c mode only) +Use the archive suffix to decide a set of the format and +the compressions. +As a simple example, +.Dl Nm Fl a Fl cf Pa archive.tgz source.c source.h +creates a new archive with restricted pax format and gzip compression, +.Dl Nm Fl a Fl cf Pa archive.tar.bz2.uu source.c source.h +creates a new archive with restricted pax format and bzip2 compression +and uuencode compression, +.Dl Nm Fl a Fl cf Pa archive.zip source.c source.h +creates a new archive with zip format, +.Dl Nm Fl a Fl jcf Pa archive.tgz source.c source.h +ignores the +.Dq -j +option, and creates a new archive with restricted pax format +and gzip compression, +.Dl Nm Fl a Fl jcf Pa archive.xxx source.c source.h +if it is unknown suffix or no suffix, creates a new archive with +restricted pax format and bzip2 compression. .It Fl B , Fl Fl read-full-blocks Ignored for compatibility with other .Xr tar 1 |