restoring backup using tar command


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users restoring backup using tar command
# 1  
Old 08-15-2007
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
# 2  
Old 08-15-2007
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!
# 3  
Old 08-15-2007
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.
# 4  
Old 08-15-2007
Is the file just a tar file and not actually compressed?

try

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

# 5  
Old 08-15-2007
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
# 6  
Old 08-15-2007
Pull it back onto a Windows machine and see if WinZip can make anything of the file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Restoring a system from a backup

I have backed up the contents of my Solaris 10 machine in its entirety, and I'm trying to figure out if I can somehow use this archive to restore my old system just as it was on a new machine. Assuming I have all files from my old machine backed up, is this possible? What I've been trying to do... (6 Replies)
Discussion started by: unblockable
6 Replies

2. Shell Programming and Scripting

Restoring files from backup based on ctime

Hello, I need to restore some yesterday emails from backup within a 5 hours timeframe this is a openvz container, backup is made by rsync files to another partition in the same server I have tried to do this #!/bin/sh cd /vz/backup/414/home/smartftp/mail/domain1.com/ for dir in new... (6 Replies)
Discussion started by: cuantica
6 Replies

3. UNIX for Dummies Questions & Answers

[SOLVED] Restoring differential backup files

I'm using a script (automysqlbackup) to dump mysql db's to .sql file followed by taking one full backup of the .sql file and the differential backups of the newer sql file every day using the tool diff. Now the backup destination folder contains files like, I would like to how do i restore... (3 Replies)
Discussion started by: csengineer
3 Replies

4. UNIX for Dummies Questions & Answers

Restoring a single file from a group of files using tar

Hello I take a backup using the following command on Solaris 9 tar cvf /dev/rmt/0n data the data volume contains a number of files say a, b, c , d ... etc Now I want to restore only one file (eg b) from the data volume. When I issue the command tar xvf /dev/rmt/0n data/b... (1 Reply)
Discussion started by: rahmantanko
1 Replies

5. AIX

Which is suitable Tar or Backup command????

hi all im making a script for backing up a specific filesystem that is an output of our DB13(SAP) into tape..which is around 40g + which is suitable tar or backup command i heard tar has limitations ..i heard it can only backup upto 2 gig??? is this ryt? and ill put this into cron. ... (6 Replies)
Discussion started by: redmanshogun
6 Replies

6. AIX

Question about restoring from mksysb backup

Hello, Last night I applied a DB2 fix pack which is now causing problems with the application that uses db2. Prior to applying the fix pack I did a mksysb(rootvg) which includes the file system that has db2 installed on it. If I do a restore from this will it restore the db2 version back to... (1 Reply)
Discussion started by: jyoung
1 Replies

7. Solaris

backup through tar command on remote tape

Hello Everybody I have two servers, name A & B. I need to take a backup of one directory(/girish) on serverA. But my tape drive is in serverB through tar command. But when I run the following command it doesn't take the backup. Could any one correct my command to take a backup tar cvf - ... (0 Replies)
Discussion started by: girish.batra
0 Replies

8. UNIX for Dummies Questions & Answers

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 - ... (2 Replies)
Discussion started by: amirthraj_12
2 Replies

9. Solaris

Restoring TAR'd file to different location

Is it possible to restore a TAR'ed file off of a tape to a location other than the original location? If so, how? (The MAN pages give examples of how to restore only to the originating location.) Thanks!! (1 Reply)
Discussion started by: FredSmith
1 Replies

10. OS X (Apple)

OS X Server: Trouble restoring mail from backup...

So I had some bad RAM in my server. Of course I didn't know it at the time. And it kept making the 10.3.5 updater crash. And that last crash did it. My drive was messed up. So I had to reformat and reinstall. Luckily I had a whole slew of fresh backups. But I'm really hung up on the mail. I backed... (0 Replies)
Discussion started by: l008com
0 Replies
Login or Register to Ask a Question