restoring backup using tar command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers 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
Quote:
Originally Posted by amirthraj_12
$ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z
What does "->" mean?
# 3  
Old 08-15-2007
Hi porter,

Even I dont know what does "->" stands for in that command.

but it has created a tar file as "apglsg.tar.Z"


I need to restore it back only and I am using the second command mentioned

Please get back to me as sson as possible
 
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 Advanced & Expert Users

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