Add directory hierarchy copying example.

This commit is contained in:
obrien 2005-03-28 18:18:44 +00:00
parent 613b483802
commit f37742ff89

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