The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
backup through tar command on remote tape girish.batra SUN Solaris 0 02-26-2008 04:51 AM
restoring backup using tar command amirthraj_12 UNIX for Dummies Questions & Answers 2 08-15-2007 03:48 PM
help with AIX and backup command rickie UNIX for Advanced & Expert Users 1 03-05-2007 09:37 PM
OS X Server: Trouble restoring mail from backup... l008com OS X (Apple) 0 08-18-2004 05:10 AM
Restoring a directory using cpio command? Relykk UNIX for Dummies Questions & Answers 2 04-04-2004 02:05 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Jun 2006
Posts: 10
restoring backup using tar command

Please help me in resolving the issue.



I have taken backup using the below command

$ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z

I tried to restore the backup using the below command.

$ zcat /opt/globusback2/needed_backups/apglsg.tar.Z | tar -xvf –





But it throws an error as



“tar: 0511-169 A directory checksum error on media; 17 not equal to 26686.”



Can some one help me out to resolve the issue as soon as possible?



Regards

Vijay
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
I would check the compression first with

# uncompress /opt/globusback2/needed_backups/apglsg.tar.Z


If that returns a zero return code, then the compression, at least, is fine, but the tar archive itself is corrupted. In that case, depending on where the corruption is in the archive, you still may be able to extract some of the files. Try a directory listing on it:

# tar tvf /opt/globusback2/needed_backups/apglsg.tar

Good Luck!
Reply With Quote
  #3 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Jun 2006
Posts: 10
I executed the below command and result is as below


$ uncompress /opt/globusback2/needed_backups/apglsg.tar.Z


/opt/globusback2/needed_backups/apglsg.tar: A file cannot be larger than the value set by ulimit.

please help what to do.
Reply With Quote
  #4 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Is the file just a tar file and not actually compressed?

try

Code:
tar tf /opt/globusback2/needed_backups/apglsg.tar.Z
Reply With Quote
  #5 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Jun 2006
Posts: 10
please refer the output of the command

$ tar tf /opt/globusback2/needed_backups/apglsg.tar.Z
tar: 0511-169 A directory checksum error on media; 0 not equal to 64268.



reagrds
vijay
Reply With Quote
  #6 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Pull it back onto a Windows machine and see if WinZip can make anything of the file.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0