Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* ?pax pattern problems?
@ 1994-11-01 22:38 Paul Smith
  1994-11-03 13:16 ` Paul Smith
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Smith @ 1994-11-01 22:38 UTC (permalink / raw)


Due to problems with dd and cpio on OSF/1 v3.0 writting to the DAT tape
drive (/dev/rmt0l or /dev/rmt0h) more than about 250 Mb before choking
I've been forced to use pax to back up about 3Gb of local and NFS mounted
machines to DAT.

The command is used to create the tape:

find . -type f -print|egrep -v 'tmp/|proc/'|pax -wv >/dev/rmt0h

The problem is on the restoration side, the man page for pax leads you
to believe that either the cpio style of file patern match is possible
or regex style will work, but with much testing I've found that it's 
neither:

pax -rv </dev/rmt0h '*/file/*' 

does not fetch all paths that have file as either a file or a dir!!


pax -rv </dev/rmt0h '.*/file/.*' 

The above cmd line matches nothing.

What gives??




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ?pax pattern problems?
  1994-11-01 22:38 ?pax pattern problems? Paul Smith
@ 1994-11-03 13:16 ` Paul Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Smith @ 1994-11-03 13:16 UTC (permalink / raw)


Paul Smith (cgi@crl.com) wrote:

: The problem is on the restoration side, the man page for pax leads you
: to believe that either the cpio style of file patern match is possible
: or regex style will work, but with much testing I've found that it's 
: neither:

: pax -rv </dev/rmt0h '*/file/*' 

: does not fetch all paths that have file as either a file or a dir!!


: pax -rv </dev/rmt0h '.*/file/.*' 

: The above cmd line matches nothing.

I'll answer my own question.  It seems the regex pattern matching that
the man page for pax describes is not exactly what I figured.  The
way to fetch portions of the tape contents is to just supply the
path fragment you want to match:

If you what the paths rooted at:

usr/lib/abc

Then use the command line:

pax -rv </dev/rmt0h usr/lib/abc

This is similar to "tar".




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-11-03 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-01 22:38 ?pax pattern problems? Paul Smith
1994-11-03 13:16 ` Paul Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox