Operating System - HP-UX
1833228 Members
2535 Online
110051 Solutions
New Discussion

How can I backup HP-UX 10.20 using a linux machine ?

 
Mauro_3
Advisor

How can I backup HP-UX 10.20 using a linux machine ?

I have a HP c200 with DDS-2 and a linux server (Conectiva6.0) with a DDS-4 tape device. How can I do to access the file system of the HP-UX 10.20 machine and backup files in the linux server using the DDS-4 device ? So, I can make all my backup just in one tape.
Thanks.
7 REPLIES 7
Stefan Farrelly
Honored Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?


From the HP Box;

cd /
tar cf - * | dd bs=64k | remsh -l dd of=/dev/st0 (or whatever the device file for the DDS4 drive is)

You need to be able to remsh to the linux box from your HP without needing a password (.rhosts)

You can do the same in reverse from the linux box to backup onto the HP DDS drive.

You can put both onto one tape if you have enough capacity. Backup the linux box first using the /dev/nst0 device file (no rewind). When its done the tape wont rewind and now you can backup the HP to it using /dev/nst0 also and it will go onto the same tape.
Im from Palmerston North, New Zealand, but somehow ended up in London...
harry d brown jr
Honored Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?

On your HP machine create a pipe.

mknod pipename p

then start your backup:

tar -cvf /pathtopipe/pipename

on your linux box do this:

rsh hpmachine dd if=/pathtopipe/pipename | dd of=/devicepathnameoftapedrive

Live Free or Die
Eugen Cocalea
Respected Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?

Hi,

Use NFS. Mount the filesystem you want to backup from the HP c200 on the server, then backup it.

add the line
/partition

to your /etc/exports file on the HP c200 and then do

exportfs /partition

then on the server you can

mount HPc200:/partition /where_you_want_on_the_server

man nfs
man exportfs
man exports
man mount

E.
To Live Is To Learn
Wim Rombauts
Honored Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?

I would go for NFS. This is not the fastest way to transfer your data, but it's simple to configure and it's easy to understand.
Volker Borowski
Honored Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?

Mauro,

I would favor Stefan's variant over NFS (too buggy and slow at all), with few modifications:

tar -cvf . (dot instead of '*' because '*' will not backup all the files like .profile, .netrc ...)

And I would not use 64k as a blocksize over the network, this might cause TCP/IP block fragmentation. I favor 5120 bytes for the dd feeding the remote-shell and 64k for the dd feeding the tape.
For ease of use, you might even consider to feed the tape with a blocksize of 5120 bytes, so you could directly untar from the tape.

Just my 0.02 ?
Volker
Mauro_3
Advisor

Re: How can I backup HP-UX 10.20 using a linux machine ?

Hi everybody,
Unfortunately I could not resolve my problem. If I try to use mount I can?t access subdirectories, for example: I want to do a full backup and I access the /xyz directory but I can?t see the /xyz/abc directory. I did a "man exports" in my HP and see a warning about it.
So, I try the other option using remsh from my HP to access the linux server but this service is not installed there, in the linux server. I search for this service in /etc/inetd.conf and there is no rsh service.
If you have more suggestions....
Thanks once more.
Cheers, Mauro
Frank Slootweg
Honored Contributor

Re: How can I backup HP-UX 10.20 using a linux machine ?

I can not help with the Linux/daemon side of r[em]sh(1). I advise to ask that question in some Linux forum/newsgroup. I can not imagine that Linux does not have a r[em]shd(1M).

On the general aspect of remote backup to a non-HP Unix system, see my response in the thread http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x16bacf38d6bdd5118ff10090279cd0f9,00.html That response points to another thread which has the majority of the information (see my responses in that, second, thread).