You can simply specify extraction patterns to cpio, but I prefer to use pax when redirecting a restoration....
You'll have to adjust this to your specific circumstances, but say I have a cpio archive, /var/tmp/tmp.cpio (this could just be your tape device), and I want to restore /home/zb/tmp/*something* to /var/tmp/output... then I'd do...
Substitute /var/tmp/tmp.cpio for your tape device, and adjust the substitution to suit your needs.
If you don't have pax installed, tell us which OS you're using.
And... if you don't actually want to redirect output, just specify the pattern to cpio, something like:
Cheers
ZB
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)
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)
Hello Every one,
I want to back up all passwd files to /xyz/passfiles.cpio
and Then restore them to /abc directory.
Here is what I wrote:
find / -name passwd | cpio -oc > /tmp/passwd.cpio
and to restore
cd abc
cpio -ium < /tmp/passwd.cpio
I can not find the files restored to /abc... (2 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 all,
I've got two HP machines running HP-UX 11.31 and would like to remotely backup one server onto another server's tape unit using the cpio command.
The two servers use a secured communication channel, i.e ssh.
Kindly help,
Koketso (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)
Discussion started by: am115998
1 Replies
LEARN ABOUT OSF1
dxarchiver
dxarchiver(8) System Manager's Manual dxarchiver(8)NAME
dxarchiver - Archives and restores files to and from disk and tape devices
SYNOPSIS
/usr/bin/X11/dxarchiver
OPTIONS
The Archiver application accepts all of the standard X Toolkit command line options, which are documented in the OPTIONS section in the
X(1X) reference page.
DESCRIPTION
Use the Archiver application, dxarchiver, to: Copy and store multiple files to a single, named archive file or output device such as a tape
or floppy disk Uncompress incoming archive files and compress newly created files Retrieve stored files from an archive file or device such
as a tape or floppy disk
Invoke the Archiver application from the CDE Application Manager from the following categories:
Application Group: System_Admin
System Admin Subgroup: Daily Admin
FILES
Defaults that are shared by the GUI and CLI The Archiver application The Archiver help volume Directory containing Archiver application
icons Application defaults file that sets the default values for the X resources Archiver message catalog Archiver online help location IDs
for on-item help i18n_motif_shared_text.cat
Message catalog containing application-independent messages i18n_motif_shared_text_LocIds.cat
Message catalog containing application-independent location IDs for on-item help
SEE ALSO
Commands: cpio(1), pax(1), tar(1), X(1X)
Files: cpio(4), tar(4)
System Administration
dxarchiver(8)