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

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!

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.

Is the file just a tar file and not actually compressed?

try

tar tf /opt/globusback2/needed_backups/apglsg.tar.Z

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

Pull it back onto a Windows machine and see if WinZip can make anything of the file.