09-10-2001
Sounds like a job for a "shell script".
Although I'm not clear on if you just want to
copy a file or an entire directory but in
either case, the script could include the
cpio command (hint: -p) and then after successful
result, compress the result file.
10 More Discussions You Might Find Interesting
1. 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
2. SCO
Hello.
Can any1 help me with the compress command.
The -b option takes the number of bits used for encoding.
can u expalin why this number of bits is used and for what purpose. what is the maximum number we can provide?
In SFU these number has a valod range between 12 and 16 y?? (1 Reply)
Discussion started by: rahulrathod
1 Replies
3. SCO
Our End of Day backup routine uses following script.
start End-of-day
compress $BASE TO /home/compdir
write /home/compdir to DATTAPE
end
where
$BASE=/home2/Rev83
DATATAPE=/dev/rmt/ctape1
write=cpio (not sure about parameters)
since I'm new to UNIX, i dont know how to restore data... (1 Reply)
Discussion started by: tayyabq8
1 Replies
4. UNIX for Dummies Questions & Answers
compress /var/opt/l2/amer/art2/USFINUM0200_.CSV
compress /var/opt/l2/amer/art2/USFINUM200_.CSV
compress /var/opt/l2/amer/art2/USFINUM020_.CSV
compress /var/opt/l2/amer/art2/USFINUM20_.CSV
Is there a way to shorten this or write it in a script. The file to be compressed will be USFINUM but... (5 Replies)
Discussion started by: indira
5 Replies
5. UNIX for Dummies Questions & Answers
hi,
can any body tell me the advantages of having cpio command over tar command (7 Replies)
Discussion started by: prasannak
7 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
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 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. Red Hat
Hi,
When we want to compress a file which is of huge size then what command is best for us.Kindly suggest on this.
1.Tar command or
2.gzip command
OS -- Linux 2.6
Regards,
Maddy (6 Replies)
Discussion started by: Maddy123
6 Replies
10. 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