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_at_adacel.com.au ph: +61 3 9596-2991 fax: +61 3 9596 2960 |
+-------------------------------------------------------------------------+
Received on Tue May 19 1998 - 09:26:25 NZST