Questions tagged [cpio]
The cpio tag has no usage guidance.
15
questions
0
votes
1
answer
37
views
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 structure…
./zero.csv
./reports/r1/a/b/c/one.csv
...
2
votes
2
answers
1k
views
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?
0
votes
1
answer
2k
views
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) ...
0
votes
1
answer
190
views
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 ...
1
vote
1
answer
743
views
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 ...
0
votes
1
answer
62
views
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 ...
7
votes
1
answer
3k
views
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 ...
4
votes
1
answer
2k
views
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 ...
0
votes
1
answer
901
views
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 ...
0
votes
0
answers
226
views
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`++++++++...
48
votes
6
answers
43k
views
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 ...
9
votes
1
answer
5k
views
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 ...
7
votes
3
answers
11k
views
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 ...
0
votes
1
answer
434
views
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 ...
16
votes
4
answers
27k
views
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?