From: "Andrew L. Weston" <andreww () adacel ! com ! au>
To: tru64-unix-managers
Subject: cpio pattern to extract subdirs (DU 3.2c)
Date: Tue, 19 May 1998 07:23:02 +0000 [thread overview]
Message-ID: <96078708811660.tru64-unix-managers.marc@archive.invalid> (raw)
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 |
+-------------------------------------------------------------------------+
reply other threads:[~1998-05-19 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox