Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BACKUP & RESTORE 1

Status
Not open for further replies.

sraj142

Technical User
Oct 25, 2006
49
IN
Hi All,
I am having two 100% parallel p560q server (prod & bkp server) with AIX 5.3 installed in the same premises. Currently I am using the following command in the prod server to take the backup in /dev/rmt0

cd /backup
find . -print | backup -i -f /dev/rmt0


For restoring in the bkp server from /dev/rmt0 I am using…
cd /backup; restore -rvqf /dev/rmt0

I want a mechanism which will simply restore files from \\192.168.156.1\backup directory to \\192.168.156.56\backup without using any removable media. Is it really possible by using ‘ftp’ or ‘rlogin’ or something like that? Basically I want a script which will run from cron & will restore files from \\server1\backup to \\server2\backup automatically. Kindly advice if it is possible without altering any hardware.
 
Yes it is possible if you configure rsh between the two servers.

If i understood your requirement in the question, then all you need to do is this:

1- setup rsh between the servers.
2- use the following command while logged in to server \\192.168.156.56\backup (destination):

Code:
cd /backup
rsh 192.168.156.1 'cd /backup; find . -print | backup -iqf -' | restore -xqvpf -

Regards,
Khalid
 
Dear Khalid,
Thanks a lot for your advise. It seems you are having a reply for every trouble. Thank you again.

Can I have any clue or link "How 2 implement rsh on aix clients" ?
Should I configure remote sharing on the main server or both the servers ?

Thanks in advance..

Regards - Subharaj
 
Thanks for the complement :)

All you need to do is to include the source hostname into the destination machine user's home (usually root) in a file called .rhosts

Code:
Add the management server's hostname and root to a new line in the $HOME/.rhosts file. For example: 
ms_hostname root

Although rsh is not as secure as ssh but it will do the job!

If you want to know more about ssh then you can go through this link:


Regards,
Khalid
 
Nice....its working fine....Thanks Khalid :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top