There is some variation in the cpio command.
What Operating System and version are you running?
What Shell do you use?
I would strongly advise that when experimenting with powerful commands such as "cpio" you use a test data file not a critical system file such as "passwd".
On a normal system I would only expect one file called "passwd" - "/etc/passwd".
Be careful.
Are you user "root"? Please say no!
Quote:
I want to back up all passwd files to /xyz/passfiles.cpio
Accuracy is everything in computing. Nowhere in your example commands does this directory or filename appear.
Afterthought:
Quote:
cd abc
Maybe should be:
Last edited by methyl; 02-07-2011 at 08:39 PM..
Reason: Accuracy , spellin, Afterthought
SCO/Caldera Unixware 711
Hi Friends,
I have a cpio file which was created using relative pathnames.
the relative pathname is users/data/*
I want to restore these files to a different directory with cpio.
An example restore directory is /home/suresh
Is this possible ?
Can someone... (4 Replies)
Hi,
I use following command to restore data from my cpio tape archive:
$cpio -icvd < /dev/rct0
But this'll restore all tape contents to the current path, what if I want only selected files from the tape, suppose I want
/home/compdir/home2/Rev83/data/PL/01/*.*
files to be restored... (8 Replies)
Can someone please let me have a nice shell script to:
1) Identify all folders/sub-folders/files older than 365 days with the exception of one or two folders e.g. named - "common" or "test"
2) Archive (1) above for example in a TAR file
3) Delete all in (1) above
and that's it...
4) In case... (1 Reply)
Our company purchased a spare HP ML350 server - identical to current one in use to act as minimal downtime replacement should the inevitable happen.
After install of OS 5.0.7 and restore of cpiobackup I get this message:
-: Syntax error: Hostname= $inexpected
The SCO licence policy... (4 Replies)
Hi,
under unix aix , i had to put a catostrophic patch from an editor ...
i had first made a cpio backup
connected root
cd /application
find . –print | cpio –ocvBm > /sauvegarde/sauvegarde.cpio
Does someone know the command to restore my cpio backup ?
thanks in advandce to everyone
... (7 Replies)
I created a CPIO archive I wanted to add addition data to it but am having issues:
-rw-r--r-- 1 test test 629295104 2011-10-28 12:41 /home/test/Downloads/test.cpio
I tried:
sudo find /tmp -depth | cpio -oAO /home/test/Downloads/test.cpio
cpio: premature end of file
and (1 Reply)
Hi I'm new to the forum and looking for some help with cpio archive creation.
I have a bunch of directories that I need to make into a cpio archive.
The problem I'm having is that when I input the commands I get the cpio archive but it creates a duplicate of the archive inside the archive... (4 Replies)
Hello folks, one of the RAID drives in our SCO system crashed recently and being hot swap it was replaced.
Problem was that on boot it stops at:
Checking protected password and protected subsystem databases....
First I did #authck -a and checked /etc/auth/system/ttys as per instructions in a... (7 Replies)
Please note that using the command cpio to back up to tape was successful. Used the below command:
time find /accts -print | cpio -oa --block-size=512 --format=newc --verbose -O /dev/nst0
I'm trying to restore from tape of a particular file and having issues. Below is the command to restore... (7 Replies)
Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: )
For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)