Solved

CPIO ERRORS

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 423
Best way to handle awk return value 6 67
Wrap Oraccle SQL*Plus executable Command 4 84
centos commands 6 53
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 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