Hello,
Today I have a new problem that is baffling me when I try to restore my cpio it dumps all the files in what seems one directory.
I was expecting the tape to contain the root file sytem and relative directories, can anyone suggest why the files I recovered
a) Are not in a directory structure as expected.
b) Are missing files such as /etc
I have a tape which contains a cpio backup, it has been created with the following commands
Code:
cd /
find . -print |cpio -ocvBdum >/dev/rmt0
cpio -itcB /dev/rmt0 >/tmp/verify.log 2>/tmp/verify.log
I understand the switches to backup mean:
Code:
o - reads file path names from standard input
c - Reads and writes header information in ASCII character form.
v - Lists file names.
B - Performs block input and output using 512 bytes to a record.
d - Creates directories as needed.
u - Copies unconditionally.
m - Retains previous file modification time.
The switches to Test the backup are:
Code:
-i - command reads from standard input an archive file created by the cpio -o command
c - Reads and writes header information in ASCII character form.
B - Performs block input and output using 512 bytes to a record.
To restore I used:
Code:
cpio -icBvd < /dev/rmt0