08-18-2008
Interesting link era, but IMHO I wouldn't say cpio is better. Nowadays they're just used for different purposes. When I want to backup a disk so that I can rapidly create several disks based on that image I use cpio or dd. On the contrary if I want to pack several log files I usually go for tar/bz2.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi friends..
I want to be able to copy a file from one location to another (locally). The location the files are copied to should have compressed instances of the files they were copied from.
copy from /home/user/test.file
copy to /backup/user/test.file.Z
I need to be able to do this... (1 Reply)
Discussion started by: sureshy
1 Replies
2. UNIX for Dummies Questions & Answers
Hello
to help me with my studying of unix/linux outside of work I was thinking of installing Linux at home aswell as using Windows XP.
Im pretty new to Linux and Unix, could someone tell me the possible benifits or even negatives of running Linux at home as an opperating system as opposed to... (2 Replies)
Discussion started by: Loaded Gun
2 Replies
3. UNIX for Dummies Questions & Answers
What are the advantages of putting users into groups? I understand that in a corporate environment, you should create a group for each department. ie: putting finance employees into a finance group.
But are there any system advantages for doing that? How would it make it easier on the system... (3 Replies)
Discussion started by: kurtmc
3 Replies
4. UNIX for Dummies Questions & Answers
I am confused with how to restore archives. I just figured out the use of tar, but now after trying it with cpio, I'm unsure of some things. Firstly, is it necessary to cd to the directory you will be restoring to in order to run this command?
Secondly, what is it I'm doing wrong when trying to... (2 Replies)
Discussion started by: Relykk
2 Replies
5. Shell Programming and Scripting
What is the advantages of Perl in Unix environnement.
Is it for scripts ? Text manipulation ?
Have you a Concrete exemple of perl utilisation.
Thanks you (3 Replies)
Discussion started by: simquest
3 Replies
6. UNIX for Dummies Questions & Answers
Hey everyone,
I’ am a newbie to Unix. Learning some of the basic commands.
I did some piping before like who | wc
I wanted to practice some backup features in Unix. I’ am practicing using cpio and place it into a file named backup. I’m not quite sure where I’ am going wrong?
... (1 Reply)
Discussion started by: fox987
1 Replies
7. UNIX for Dummies Questions & Answers
What are some advantage's of Unix (3 Replies)
Discussion started by: alvin2132
3 Replies
8. Solaris
i need to extract cpio file archived full path to /restore/ (not full path or fullpath under this directory ) i can't find option for cpio please help me
example.
i have cpio file archive /etc/* and i need to extract file to /restore
#cpio -ivBcdmu < xx.cpio
but data from cpio not... (3 Replies)
Discussion started by: infjustice
3 Replies
9. UNIX for Advanced & Expert Users
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 MOJAVE
rpm2cpio
rpm2cpio(1) User Commands rpm2cpio(1)
NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive
SYNOPSIS
rpm2cpio [file.rpm]
DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu-
ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out-
put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility.
EXAMPLES
Example 1: Converting an rpm file
example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
Example 2: Converting from standard input
example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrpm |
+-----------------------------+-----------------------------+
SEE ALSO
cpio(1), attributes(5)
NOTES
rpm2cpio handles versions 3 and 4 RPMs.
SunOS 5.10 20 Aug 2001 rpm2cpio(1)