summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-03-28 18:18:44 +0000
committerobrien <obrien@FreeBSD.org>2005-03-28 18:18:44 +0000
commitf37742ff8923aa4bde92d9f9cfd4b77514fb2662 (patch)
tree7fb7e3689e63156e87f2a9574710a7f09419022e /usr.bin/tar
parent613b483802874e934abeb4a1848fda027d499d90 (diff)
downloadFreeBSD-src-f37742ff8923aa4bde92d9f9cfd4b77514fb2662.zip
FreeBSD-src-f37742ff8923aa4bde92d9f9cfd4b77514fb2662.tar.gz
Add directory hierarchy copying example.
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/bsdtar.17
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar.1 b/usr.bin/tar/bsdtar.1
index b9eda21..3c09feb 100644
--- a/usr.bin/tar/bsdtar.1
+++ b/usr.bin/tar/bsdtar.1
@@ -457,6 +457,13 @@ To extract all entries from the archive on
the default tape drive:
.Dl Nm Fl x
.Pp
+To move file hierarchies, invoke
+.Nm
+as
+.Dl Nm Fl cf Pa - Fl C Pa srcdir\ . | Nm Fl xpBf Pa - Fl C Pa destdir
+or more traditionally
+.Dl cd srcdir \; Nm Fl cf Pa -\ . | ( cd destdir \; Nm Fl xpBf Pa - )
+.Pp
In create mode, the list of files and directories to be archived
can also include directory change instructions of the form
.Cm -C Ns Pa foo/baz
OpenPOWER on IntegriCloud