1825689 Members
3611 Online
109686 Solutions
New Discussion

Re: Query on using CPIO

 
Harinath N
Frequent Advisor

Query on using CPIO

Hi,

I need to know the command for going through or to list (without writing onto the disk) the contents of the data backed up in a DLT media using CPIO.

Could someone help me on this?

Thanks and Regards,
N.Harinath.
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: Query on using CPIO

Hi,

Use the -t (listing) option.

if your device is /dev/rmt/2m, then execute:

# cpio -itv < /dev/rmt/2m

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
RAJESH GANGADHARAN
Regular Advisor

Re: Query on using CPIO

Hi,

Thanks for your reply.
I tried with it, but its giving the following output,

"Out of Phase - get help
Perhaps -c option shouldn't be used"

Please help me out on this.

Regards,
N.Harinath.
Let the choices you make today be the choices you can live with tomorrow.
Steven Sim Kok Leong
Honored Contributor

Re: Query on using CPIO

Hi,

It depends on the options you used during the cpio output mode to tape.

Since it is a tape device, use the block device -B option. Thus to list,

# cpio -itvB < /dev/rmt/2m

If -c was used in the output mode, then similarly the -c option must be used in the input mode. Thus to list,

# cpio -ictvB < /dev/rmt/2m

Remember to replace /dev/rmt/2m with the appropriate device file of your DLT tape drive.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Wodisch
Honored Contributor

Re: Query on using CPIO

Hello,

looks like your tape was NOT the first to be written during that backup - you'll have to start with "cpio -ictv < /dev/rmt/0m" on the first tape, wait until it has been completly read, then you'll get the messaeg to exchange the tape and enter the name of the device containing the follow-up tape, and then you re-do the whole procedure until you used the tape you are interested in...

HTH,
Wodisch