Solved

CPIO ERRORS

Posted on 2004-08-05
2
840 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 250 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 250 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

860 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