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

how to use cpio list tape file mark no
© December 2004 (various authors)

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 ––>

Inexpensive and informative Apple related e-books:

iOS 10: A Take Control Crash Course

Take Control of Preview

iOS 8: A Take Control Crash Course

Take Control of IOS 11

Take Control of Pages

Printer Friendly Version

Have you tried Searching this site?

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

Printer Friendly Version

I love deadlines. I love the whooshing noise they make as they go by. (Douglas Adams)

Linux posts

Troubleshooting posts

This post tagged:


Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode

SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)