Operating System - HP-UX
1827289 Members
3178 Online
109717 Solutions
New Discussion

Re: Need to backup/copy from Linux to HP-UX.

 
Gulam Mohiuddin
Regular Advisor

Need to backup/copy from Linux to HP-UX.

I need to take complete cold back of Oracle database on RedHat Linux Server but unfortunately I don’t have any free space to backup the Oracle datafiles (10GB) on this Linux box.

So, can I backup Oracle database to any HP-UX Server where I have lots of free space?

Also what would be the best way to copy/move files from Linux-to-HP-UX-to-Linux.

Thanks,

Gulam.
Everyday Learning.
7 REPLIES 7
RAC_1
Honored Contributor

Re: Need to backup/copy from Linux to HP-UX.

I can think of GNU tar and NFS. NFS would be better.

Anil
There is no substitute to HARDWORK
HGN
Honored Contributor

Re: Need to backup/copy from Linux to HP-UX.

Hi

You can do a NFS mount of a large filesystem from the HP server on the Linux box adn then tar it on that.

Rgds

HGN
Gulam Mohiuddin
Regular Advisor

Re: Need to backup/copy from Linux to HP-UX.

Thanks for the reply, but unfortunately I don't have NFS configured on both the servers.

Gulam.
Everyday Learning.
Victor BERRIDGE
Honored Contributor

Re: Need to backup/copy from Linux to HP-UX.

Hi,
Im sure your linux box is a good candidate for nfsclient and "not configured" NFS server on HPUX is no good excuse if you are adminitrator of the box:
Its dead easy using sam:
sam& go to Networking and communications / Networkes File systems.
Click on Exported local file systems /Action-add Exported file system...
If the daemons werent started - It will ask you Enable NFS server...

Im quite sure the client is running on the linux box so you just have to try:
mount :/ /
(check the correct syntax on your linux box)

Be sure to have the boxes name resolved either by DNS or /etc/hosts

Good luck
Victor
Bill Hassell
Honored Contributor

Re: Need to backup/copy from Linux to HP-UX.

For a few large files, ftp would be the fastest way. NFS carries a lot of overhead with it. The mput and mget commands can transfer everything in a directory but ftp cannot descend and automatically create subdirectories. For this, you can write a short script to run ftp automatically.


Bill Hassell, sysadmin
Gulam Mohiuddin
Regular Advisor

Re: Need to backup/copy from Linux to HP-UX.

Thanks everybody.

I think I would go with ftp as this is a one time requirement only.

A will also compress files before ftp.

Thanks,

Gulam.
Everyday Learning.
Victor BERRIDGE
Honored Contributor

Re: Need to backup/copy from Linux to HP-UX.

Hi again Gulam,

Well there are other solutions:
Try to get the boxes to accept your connections without passwd - that is using the correct .rhosts file on each box.
Test by doing a rlogin that it is straight through then with remsh or rsh.
If success then e.g. with remsh:
- On the source node, go to the directory you want to backup (or the level above so 2 examples will be given)
tar -cf - dir1 |remsh "(cd ; tar xvf -)"
This one I just tried so I know it works:
In the directory:
tar -cf - * | remsh dest-node "(cd /dest-dir ; tar -xvf - )"

Good luck
All the best
Victor