Help with uncompress...Urgent


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with uncompress...Urgent
# 1  
Help with uncompress...Urgent

Hi,

I am restoring the database backup using compress utility(/usr/bin/compress) which takes around 1 hour.For restoration i use uncompress utility(/usr/bin/uncompress) which is taking nearly 6-7 hours.Can someone let me know how to reduce this time.I have pasted below the line from script which is used for uncompressing data :
Code:
for File in ${acFileList}
do 
 Uncompress=/usr/bin/uncompress
 ($Uncompress -cf $File 2>/dev/null > $acRestoreDir/${File%.Z} ; echo $?
$File >> $errorfile ) &
done

Regards
Santhosh Kumar N

Last edited by Scott; 02-04-2010 at 07:10 AM.. Reason: Please use code tags
# 2  
Have you identifie the botleneck already? Is the CPU used for 100%? Where is the backup stored? On a separate disk?
# 3  
I believe that the script is flawed. It is doing the equivalent of "zcat" and piping the output to a shell write. Without testing it I'm not convinced that the resultant file would be correct unless it was a text file. Also it will be very slow.
You need to do each uncompress in a directory which has enough space for the total size of the compressed file and the uncompressed file for the duration of that uncompress - even if it means copying each file.
Depends on local conditions.

Code:
uncompress ${File}.Z

i.e. Don't use the "-cf" switches.

When uncompressing multiple equal size database segments in a partition which is just big enough I temporarily move the first segment out of the way while uncompressing the last segment. This minimises data movement.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #659
Difficulty: Medium
It is not possible to run DOS on Linux.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Cannot uncompress the tar.gz

I've downloaded the tomcat from http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.30/bin/ at window 2000 and then ftp to Solaris 5.9 in binary mode. gunzip -c jakarta-tomcat-5.0.30.tar.gz | tar -xvf - tar: directory checksum error if try this one, gzip -d jakarta-tomcat-5.0.30.tar.gz... (2 Replies)
Discussion started by: sbox
2 Replies

2. UNIX for Advanced & Expert Users

uncompress command

on my suse linux, there is no compress and uncompress command. however, a program need these command to be installed properly. my question is how i can install these command and where to find them, thanks! (6 Replies)
Discussion started by: fredao
6 Replies

3. UNIX for Advanced & Expert Users

uncompress

Hi All, is it possible to uncompress on another directory ? At the moment I have my file to uncompress on /u07 that has 5GB free. When uncompressed it would be more then 6G , I want to send uncompressed file on another directory where I have more free space. is it possible ? How ? Many thanks... (3 Replies)
Discussion started by: big123456
3 Replies

4. Programming

uncompress of zlib

When I gzopen & gzread from a gzip file, it works OK. But I when I try to uncompress the same data from memory (either by reading to memory with fread or mmap()ing) using decompress, I get Z_DATA_ERROR. Is it because gzip file has some kind of headers that uncompress doesn't want? How can I get... (3 Replies)
Discussion started by: rayne
3 Replies

5. UNIX for Dummies Questions & Answers

How to Uncompress a whole directory

Hi, Can any one give me the shell command to rename more than one files to .Z extension in a directoy or path. As well as how can i uncompress a whole directory with a single shell command? rEgards, Tayyab (5 Replies)
Discussion started by: tayyabq8
5 Replies

6. UNIX for Dummies Questions & Answers

How to get to a file and uncompress it

I did an ftp to copy a tar file from a main server area to the backup server area. I need to get that tar file to uncompress it in backup server. How do I go about it. Please any suggesstion will be greatly appreciated (1 Reply)
Discussion started by: nkem22
1 Replies

7. UNIX for Dummies Questions & Answers

uncompress in unix

Hi all, I have compressed a file in windows platform using 7zip into tar.z format. I try to uncompress in Unix using uncompress command. It doesn't work. Can anyone tell me wether there is any tools I can use in windows to generate a Tar.Z file which can be uncompress in unix. From Icestone (1 Reply)
Discussion started by: icestone
1 Replies

8. UNIX for Dummies Questions & Answers

Uncompress... me!!!!!! :)

Dear friends, i'm trying to uncompress an "...... tar.z" file. I'd readen that using the "uncompress" command it could be made but............... God! I can't!!!!! I tried a lot of times using the Terminal but the uncompress command doesn't obeys!!! :):) . Please i need to know how to... (3 Replies)
Discussion started by: gussiglo21
3 Replies

9. UNIX for Dummies Questions & Answers

uncompress files

I get a compressed file for linux and I want to uncompress it in Unix. Is that possible? I try with te command uncompress but it didnt work. T.hanks (3 Replies)
Discussion started by: diegoe
3 Replies

10. UNIX for Dummies Questions & Answers

uncompress command

I am trying to install SUN explorer program on solaris: I download the file SUNWexplo.tar.Z from sun.com, ftp to /tmp then try to uncompress it with the following command: uncompress SUNWexplo.tar.Z which gives the following error: uncompress: corrupt input I tried downloading the file... (4 Replies)
Discussion started by: niamo1
4 Replies

Featured Tech Videos