Meaning and use of SCO's cpio -K option?

We're running a SCO OpenServer 5.0.5 production box, with the following one-line scripts for (1) application system and (2) OS backups.

(1) find /u -depth -print | cpio -ocv > /dev/rStp0 -C10240 -K20000000

(2) find / -depth -print | cpio -ocv > /dev/rStp0 -C10240 -K20000000

According to SCO UNIX in a Nutshell, the -K value specifies volume size, but in what units? Blocks? Bytes?

I ran an OS backup this morning that captured 1,551,460 blocks.

The backup used to write to a QIC device with 250MB and 525MB tapes (I don't know whether the 250MB tapes were sufficient); now it writes to a DDS3 device with 12/24GB tapes (non-compressed/compressed). Do I still need to specify this parameter? If so, at what value?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi Geoff,

the '-K' parameter specifies the media volume size in 1KB blocks -- the example used in the  SCO OpenServer Release 5 manpages linked below explains that a 1.2 MB floppy would need '-K1200'.

SCSI tapes should not need the -K parameter at all.

take care,


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geoff_KovarikAuthor Commented:
Thanks for your quick response.

Is it ignored for SCSI tapes?

I noticed that when I ran SCO's BackupManager (in graphical mode) to back up /dev/root, it asked for a non-zero value for this parameter, and I think BackupManager runs cpio, but I'm not sure. I gave it the same value as shown in the scripts, and it ran happily.

I wonder (1) what would happen if the size of the data to be backed up exceeded this value and (2) whether the above scripts will run without the specification. I'll test this, but do you happen to know about either?

Geoff_KovarikAuthor Commented:
Another thing: the link you provided is a dead end. Visiting presents a full page of broken links...
Is that page cached somewhere - or if you have access, could you paste that page into a comment?

Thanks again.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Geoff_KovarikAuthor Commented:
Er...never mind. Found the page in a Google cache, just as I should have.

Geoff_KovarikAuthor Commented:
Tested script yesterday without -C and -K f lags, copying a subset of system data files to our SCSI tape drive. Ended OK; all seems well.

Glad to hear it and you're welcome!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.