APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

how to use cpio list tape file mark no rewind

What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):

> I have taken the full backup of our sco unix ver 4.2 rel 3.2 server files
> on to a 4/8GB hp tape using the following command
> "find . -print | cpio -ocvB -O /dev/nrStp1"
> it backuped the files on to the tape(i feel so)
> Now i want an listing of the files inside the tape being backed up.
> I usually use the tar command which i am comfortable with. But since the
> total file size was more than 2GB i used the cpio command. Now please help
> me in getting the contents of the tape & to ensure that the command has
> worked.
> I will be very grateful to you.

You should read the man page for cpio- it gives many examples.

First, you are using the "no rewind" device.  You shouldn't be doing that
unless you are making multiple backups to the same type.  Ordinarily you
would use 
"find . -print | cpio -ocvB -O /dev/rStp1"

To list a cpio volume:

If you AREN'T using nrStp1:

 cpio -itv </dev/rStp1

If you are doing multiple sets:

tape rewind
tape -a rfm x (where x is the number of filemarks to skip- see "man tape")
cpio -itv </dev/nrStp1

Tony Lawrence (tony@aplawrence.com)
SCO/Linux articles, help, book reviews, tests, 
job listings and more : 

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> how to use cpio list tape file mark no rewind ––>

Increase ad revenue 50-250% with Ezoic

Kerio Samepage

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us