cpio problem

Hello,

I made a script to make the backup of 3 QNX systems.

I write on the tape in the following way:

DEVTAPE=/dev/tp0
find/home/siglib/sigbackupd$NODE.tab - print | cpio - ocvB > $$DEVTAPE

where $$NODE here is the number of QNX system.

The file sigbackupd$NODE.tab contains the repertories to be saved on the
tape.

I don’t have any error messages.

I noticed that when the verification occurs well, in my file it writes
"cpio: No input " and when the verification fails it doesn’t write that.

My problem is about the verification of this one. After having copied my
backup from the tape, I check it in the following way:

cpio - itvB < $$DEVTAPE

My error seems random. Sometimes the 3 verifications doesn’t work, sometimes
just one doesn’t work but sometimes the 3 verifications works well.

Do you have an idea how to correct this problem? Is there another way to
make a good verification?

Thank you in advance.

What kind of tape drive? If it’s SCSI, which controller?
Are you sure the tape media is OK?
What is the error? Does traceinfo show anything interesting?

Richard

Yanick Aubut wrote:

Hello,

I made a script to make the backup of 3 QNX systems.

I write on the tape in the following way:

DEVTAPE=/dev/tp0
find/home/siglib/sigbackupd$NODE.tab - print | cpio - ocvB > $$DEVTAPE

where $$NODE here is the number of QNX system.

The file sigbackupd$NODE.tab contains the repertories to be saved on the
tape.

I don’t have any error messages.

I noticed that when the verification occurs well, in my file it writes
"cpio: No input " and when the verification fails it doesn’t write that.

My problem is about the verification of this one. After having copied my
backup from the tape, I check it in the following way:

cpio - itvB < $$DEVTAPE

My error seems random. Sometimes the 3 verifications doesn’t work, sometimes
just one doesn’t work but sometimes the 3 verifications works well.

Do you have an idea how to correct this problem? Is there another way to
make a good verification?

Thank you in advance.