Add directory hierarchy copying example.

This commit is contained in:
David E. O'Brien 2005-03-28 18:18:44 +00:00
parent f6bb4f25a4
commit a89017c846
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144244

View File

@ -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