Operating System - HP-UX
1820636 Members
1754 Online
109626 Solutions
New Discussion юеВ

how to backup to a remote tape?

 
faust2004
Regular Advisor

how to backup to a remote tape?

Hi,
(my system is b2000 with 11.0)
I want to backup the system to a tape on a remote sun box. when use rdump, or sam to do this , It failed.
how to do this job.

Thanks
Sunny
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: how to backup to a remote tape?

Sorry, you are not going to find those commands on HP-UX. HP's answer is to use fbackup which will talk to remote tape drives but it is HP only. You now will need to look at doing it yourself using remsh.

e.g.

find . -print | cpio -ocBv | remsh sunhost dd ibs=5k obs=1000k of=/dev/tape

If you are going over a slow network you may want to add compress/uncompress to your pipeline. You could also use tar or fbackup as your front-end command.

If it ain't broke, I can fix that.
Michael Tully
Honored Contributor

Re: how to backup to a remote tape?

Hi,

Using tar
# tar cvf - /dir_name | remsh hostname dd of=/dev/rmt/0m
or
# remsh "dd if=/dev/rmt/0m bs=10k" | tar xvf -

Using cpio

# find . -depth -xdev | cpio -ovxcB 2>/tmp/err.cpio |remsh hostwithtapedrive -l user "cat - | dd of=/dev/rmt/0m obs=5k"

HTH
-Michael
Anyone for a Mutiny ?
A. Clay Stephenson
Acclaimed Contributor

Re: how to backup to a remote tape?

Hi again:

I suppose I should mention one much faster though not free alternative. You might look into Omniback. You can install it as a 60-day trial. It will allow you to backup many flavors of UNIX, Windows, Novell, and others to tape drives located essentially anywhere on the network.
If it ain't broke, I can fix that.
Darrell Allen
Honored Contributor

Re: how to backup to a remote tape?

Hi Sunny,

I believe you should be able to use rdump to backup to your Sun's tape drive. I have done the reverse (ufsdump to a HPUX box) and extracted files (restore) there. You have to set up the "r" security stuff (.rhosts, etc) for this to work.

What was your error?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Frank Slootweg
Honored Contributor

Re: how to backup to a remote tape?

A. Clay wrote:

> Sorry, you are not going to find those commands on HP-UX.

Which commands? The Question Author mentioned rdump and sam and, AFAIK :-), those *are* on HP-UX.

> HP's answer is to use fbackup which will talk to remote tape drives but it is HP only.

If by "it is HP only" you mean that fbackup *itself* is HP only and must run on HP-UX, then that is true. But fbackup can make *remote backup* (which is asked here) to a tape drive on a non-HP-UX system, provided that system has the Berkeley standard rmt(1M). For details see the comments on rmt in the fbackup(1M) manual page.
harry d brown jr
Honored Contributor

Re: how to backup to a remote tape?

Sunny,

get Gnu's tar, it'll do remote tape writes. It will also handle LARGE files.

for hp:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/

for sun:

http://sunsite.ics.forth.gr/sunsite/gnu/tar/

or better yet (where you select your Solaris OS revision):
http://www.sunfreeware.com/

live free or die
harry
Live Free or Die
Paula J Frazer-Campbell
Honored Contributor

Re: how to backup to a remote tape?

Frank

The unwritten etiquette on the forum is not to criticise nor directly correct another forum members answer to a question, but to answer the question posed.


Paula
If you can spell SysAdmin then you is one - anon