Questions tagged [cpio]

15 questions
48
votes
6 answers

What is the difference between TAR vs CPIO archive file formats?

I am curious and did a bit of reading but still have questions. What makes CPIO different than TAR? I was told in another question that tar is for pulling together many files into 1 archive which then is usually gzip'd or bzip'd. Also I was told TAR…
AtomicPorkchop
  • 3,244
  • 14
  • 38
  • 58
16
votes
4 answers

cpio basic extract command, 'tar xzvf' equivalent?

I've received a Unix software distribution as a compressed cpio file. What's the best command to extract the files?
Mark Harrison
  • 982
  • 4
  • 9
  • 17
9
votes
1 answer

extract a few members from tar archive and pipe through network

edit: I want to extra member01 and member02 and directory blah/ tarball_1.tar.gz contains directory test/ with 20 files. I want to extract only member test/member01 and test/member02 and directory blah/ and copy them to another "remote_host" using…
Felipe Alvarez
  • 2,054
  • 3
  • 27
  • 37
7
votes
3 answers

Copy file in GNU/Linux with progress bar and rate limiting

Is there any good tool in GNU/Linux that copy files like cp, but also shows progress and limits speed (and changes limit without interruption) like pv? Prototype: find source_directory | cpio -H newc -o | pv -s `du -bs source_directory/ | awk…
Vi.
  • 16,755
  • 32
  • 111
  • 189
6
votes
1 answer

How to extract concatenated cpio archive?

% find a/ | cpio -o | gzip -c > alpha.gz % find b/ | cpio -o | gzip -c > bravo.gz % cat alpha.gz beta.gz > charlie.gz % gunzip charlie.gz Now I get file charlie, which should be a concatenated cpio archive. But cpio -id < charlie only extract the…
Magicloud
  • 175
  • 1
  • 7
4
votes
1 answer

Cygwin cpio doesn't work on Windows

I have just installed cygwin on Windows 7 x64, and I have installed all the packages I need. I have installed cpio, and I am attempting to extract a file with the following command line in the cygwin console: cpio -i -H newc…
Rex Whitten
  • 174
  • 2
  • 8
2
votes
2 answers

Initrd file CPIO archive x-cpio Type of File How to Recompile?

How to recompile the file type of CPIO-archive (application/x-cpio) I am able to unpack its contents with below command. unmkinitramfs initrd . But not able to recompile. How can I Achive this?
PRATAP
  • 107
  • 15
1
vote
1 answer

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

in my Linux machine under /var/Recording directory. I have hundreds directories and each directory there are also directories and files include hard links and soft link . I want to compress all directories under /var/Recording directory to create…
maihabunash
  • 489
  • 2
  • 6
  • 15
0
votes
1 answer

Error trying to copy files with find and cpio

I have a bash script that I use to periodically make a backup of proofs (PDFs & JPGs) from a server I work on. I put together the script a couple of years ago and it used to work however the script is now resulting in 0 block error. I've been using…
juliushibert
  • 143
  • 8
0
votes
1 answer

Filenames stating with ./ in cpio files created with mac

I would like to use my mac to create cpio files to be used in linux. The filenames seem to be "./name" when created in mac. When the cpio is created in linux name is just "name". The sw I need to use has some problems with that so my question is: is…
Tero
  • 1
  • 1
0
votes
1 answer

using rsync/cpio to backup 28TB filesystem

I need your help in finding a best tools/command to backup a huge(140k directories= 24TB) filesystem. I used cpio to copy 80% but my system is out of memory i was forced to kill cpio half way. Our system is SUSE LINUX Enterprise Server9…
AlBouazizi
  • 559
  • 4
  • 8
  • 17
0
votes
0 answers

Cloning xfs filesystem using cpio?

I need your help in cloning 28TB xfs filesystem I used the following script: /backuptacs.sh >> /backuptacs.log And the script is: #!/bin/ksh echo "++++++++++++++++ Start Date is `date`+++++++++++++ " cd /tacs1/conq/hhl_imgs find . -depth -print |…
AlBouazizi
  • 559
  • 4
  • 8
  • 17
0
votes
1 answer

How to transform nested subfolders into a single subfolders

Whats a good way of “collapsing“ subfolders of a specified directory into a single folders whose name is a join the subfolders? So given this directory…
Ashley Coolman
  • 527
  • 4
  • 13
0
votes
1 answer

Why does cpio say "WARNING! These file names were not selected" when copying a large number of files?

For over 10 years, I've been using this strategy to copy a large number of files between UNIX filesystems: cd source_directory find . -depth -print | cpio -pdm /path/to/destination_directory It works like a champ. However, I'm now getting this…
royco
  • 469
  • 3
  • 8
  • 14
0
votes
1 answer

Cannot unpack a file with sudo cpio

I have sudo permissions and I'm trying to unpack a file with cpio command. However, because of the path properties I get permission denied when I try to do it. $ id uid=4777(testuser) gid=100(users) groups=100(users),1008(otherwheel) The home path…
The-0m3n
  • 11
  • 2