Solved

CPIO ERRORS

Posted on 2004-08-05
2
836 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 61

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.:
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now