1752774 Members
4951 Online
108789 Solutions
New Discussion юеВ

Re: restore with tar

 
Fadia Almarei
Super Advisor

restore with tar

Dear All

i use tar command to backup data i do foure remote backup from four servers to a tape connected to one , the first two backups i use tar cvf /dev/nst command for backup for the third one i use tar with compression tar cvzf /dev/nst2 , i try to recover the data from the third backup the compressed one but i could not even i try to list the backuped file with tar tvf /dev/st2 it does not work kindly any help in the restoring issue.
1- for the first server
tar cvf RADIUS:/dev/nst2 /backup1

2-for the second server
tar cvf RADIUS:/dev/nst2 /backup2

3- for the third one
tar cvzf RAIUDS:/dev/nst2 /backup3

i use the mt command to see the data

mt -f /dev/st2 fsf
tar tvf /dev/st2

for the first i see the data
for the second also i see it
for the third i get
this does not look like tar archive

BR;
Fadia
fadia.marei
5 REPLIES 5
Wouter Jagers
Honored Contributor

Re: restore with tar

Not 100% sure about your situation, but when you create a compressed tar archive with 'tar cvzf', you should also pass the 'z' option for viewing the archive: 'tar tvzf'.

If your HPUX tar does not support the 'z' option, first 'gunzip' you file and then 'tar tvf' it.

Hope that helps,
Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Fadia Almarei
Super Advisor

Re: restore with tar

i try both command and it does not work
fadia.marei
Rachiel
Advisor

Re: restore with tar

Hi,

If tar -cvzf works, that means "z" option is supported. There is no question of it not working.

maybe the tar -cvzf has not at all worked. check your backup logs.

Rachiel
Wouter Jagers
Honored Contributor

Re: restore with tar

Well, seeing the command(s):

# tar cvf RADIUS:/dev/nst2 /backup1

Fadia is backing up from one box to another.

Fadia, are the source and target machines both HPUX boxes ? Are you using the same tar on both ?

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Wouter Jagers
Honored Contributor

Re: restore with tar

*cough*

If you are trying to restore on the same machine as you took the backup one, ignore my last message ;-)
an engineer's aim in a discussion is not to persuade, but to clarify.