From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811660.tru64-unix-managers.marc@archive.invalid> From: "Andrew L. Weston" Date: Tue, 19 May 1998 07:23:02 +0000 To: tru64-unix-managers Subject: cpio pattern to extract subdirs (DU 3.2c) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811660 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 | +-------------------------------------------------------------------------+