Re: problem with restore



On Tue, Jun 12, 2007 at 07:55:28AM -0700, sylvan dacounha wrote:
dear Krishna,

Thanks for your quick reply..

can tar be used to backup files on a machine with remote tape drive..??
appreciate your help

yes. take a look at tunneling through ssh. I haven't tried the syntax
but it will be something like this.

machineA - system to be backed up
machineB - system with tape unit

from machineA

sudo tar cf - /home | ssh adminuser@machineB dd of=/dev/nrsa0

the '-' on the tar command makes the 'f' go to stdout.
pipe into ssh and on remote machine dd takes stdin and send out using
'of' to /dev/rnsa0 or whatever your tape device is named.



regards

simon

Krishnaprasad_K@xxxxxxxx wrote:
Hi,

Have you tried taking backup using tar utility instead of rdump.
If you take backup and try restore using tar, you may face issues.

So try to take backup and restore using tar utility.

tar -zcvf /dev/rmt/0hbn will do backup and
tar -zxvf /dev/rmt/0hbn will do a retrieve operation.

Also you can verify the content of tape after backup using

tar -tzf /dev/rmt/0hbn - it will list the contents of tape.

Note :- Make sure that you have rewinded the tape before trying to
restore.

There are other utilities available for tape backup for eg/- cpio

Regards,
Krishnaprasad
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of sylvan dacounha
Sent: Tuesday, June 12, 2007 3:47 PM
To: General Red Hat Linux discussion list
Subject: problem with restore

Dear ALL;

I am using REDHAT 9 server and doin a back up on remote tape but the
restore gives prblem


let me expalin


I have a redhad 9 server and my tape drive is on a SUN Solaris server.
iam backing up the redhat 9 server on the tape drive attached to the
SUN machine
thats doin a remote backup

the tape is dds3 type.

i use the command from the linux machine to backup on tape attached to
SUn server

rdump 0f xx.xx.xx.02:/dev/rmt/0hbn /

and it backs up succesfully witout any errors

but i want to restore now
so from the linux machine i use the command

restore -if xx.xx.xx.02:/dev/rmt/0hbn

but it gives me a error message

Connection to xx.xx.xx.02 established. ----- where xx.xx.xx.02is the
SUN server IP
restore: Tape is not a dump tape

if i use tar command

tar -tvf xx.xx.xx.02:/dev/rmt/0hbn it says

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors


now if i go to the SUN sparc machine and run tar command

tar -tvf /dev/rmt/0hbn

it says
tar: directory checksum error


if i run ufsrestore

ufsrestore -ivh /dev/rmt/0hbn

its says

Verify volume and initialize maps
Media block size is 20
Volume is not in dump format

how can i test my restore .. or which command can i run with swiches
for a sucessful restore


also how can i list the contents of tape


thanks and Regards


simon







---------------------------------
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
David Bear
phone: 602-496-0424
fax: 602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
"Beware the IP portfolio, everyone will be suspect of trespassing"

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Dump/restore mystery (off topic)
    ... Triffid wrote: ... > from tape, and restore the latest backup. ... The restore script reported numerous instances ...
    (comp.unix.solaris)
  • Re: Dump/restore mystery (off topic)
    ... Triffid wrote: ... > from tape, and restore the latest backup. ... The restore script reported numerous instances ...
    (comp.unix.solaris)
  • Re: Checking a Sun L9 autoloader.
    ... > got a real HVD SCSI card. ... > The HVD SCSI card is now reconsised at the OBP, along with the tape ... DO NOT use tar to backup your system. ...
    (comp.sys.sun.admin)
  • RE: problem with restore
    ... i can perfectly backup n read the contents of the tape on remote machine ... It specifies how to backup/restore to/from a tape which resides ... Subject: problem with restore ... the '-' on the tar command makes the 'f' go to stdout. ...
    (RedHat)
  • Re: Dump/restore mystery (off topic)
    ... >>from tape, and restore the latest backup. ... The restore script reported numerous instances ... I understand dump should ideally be run against unmounted file systems, ...
    (comp.unix.solaris)