?
Solved

CPIO ERRORS

Posted on 2004-08-05
2
Medium Priority
?
854 Views
Last Modified: 2013-12-05
Unixware - Is there a log I can look at to see what files did not get stored and/or restore and what was the error message when I am using cpio to do my backups and restores. Example Restore

cpio -icvdumC32768 -I/dev/rmst/ctape1 "DATA/*"

Thank you.
0
Comment
Question by:petro2
2 Comments
 
LVL 62

Assisted Solution

by:gheist
gheist earned 1000 total points
ID: 11728193
There is no log. all you can do is add 2>~/cpio_log
There is very little meaning from backing up always modifying binary files used by applications.
readd at least manual pages for tar pax and cpio, somewhere will be some mention how long they wait the files to close.

cpio usually does not archive open files, you need to dump application which opened files ( commands are fstat or fuser, if none of these, then install lsof from skunkware)
0
 
LVL 38

Accepted Solution

by:
yuzh earned 1000 total points
ID: 11732209
Avoid use -C with cpio when you can (if you forgot which value was use, then you will
have trouble to restore it)

For SCO you the following option is good enough:

Write to tape, support multiple volumes:
cat LIST | /bin/cpio -oacv -O /dev/rmst/ctape1
or (backup the whole system)
find / -print | /bin/cpio -oacv -O /dev/rmst/ctape1

To restore:
cd /dir-torestore
cpio -icdmuv -I /dev/rmst/ctape1

To log the cpio restore:
cpio -icdmuv -I /dev/rmst/ctape1 >/tmp/cpio.log 2>&1

It will log the whole restore process, if you only want errors, see  gheist's comment.

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question