tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* cpio pattern to extract subdirs (DU 3.2c)
@ 1998-05-19  7:23 Andrew L. Weston
  0 siblings, 0 replies; only message in thread
From: Andrew L. Weston @ 1998-05-19  7:23 UTC (permalink / raw)
  To: tru64-unix-managers

Hi all,

For our backups we use find and cpio as follows:
find projects users -depth -print | cpio -ocvB -O /dev/rmt0h

In the past I have only needed to restore a single directory contents
however I now need to restore some specific projects (not all).  The
commands I have used have been:

cpio -icBmuvd -I/dev/rmt0h projects/abc/\* projects/oots/\*

(I have also tried using double quotes instead of the back slash).

All that is restored is the contents of projects/abc and projects/oots
but not any of the subdirectories below this.

I looked at the man page and noted a quote on -m which mentions that it
cannot be used when copying directories.  I have assumed that this
refers to cpio -p.

I am using a TK87 tape drive on an alpha 3000 M500 running OSF/1 (DU)
3.2c.

Does anyone have a solution as to what pattern I should define to
restore the entire contents (including subdirectories and contents) of
these directories?

Thank you,

Andrew Weston
(Network Adminstrator)

 Note: Any comments I may make are not necessarily those of my employer.
+-------------------------------------------------------------------------+
| Adacel Technologies Ltd.,   250 Bay st Brighton Victoria 3186 Australia |
| email: andreww@adacel.com.au  ph: +61 3 9596-2991  fax: +61 3 9596 2960 |
+-------------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-19  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-19  7:23 cpio pattern to extract subdirs (DU 3.2c) Andrew L. Weston

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