Operating System - HP-UX
1838568 Members
5177 Online
110127 Solutions
New Discussion

Urgent: rcp command to do data migration

 
Leon Shen
Frequent Advisor

Urgent: rcp command to do data migration

Hi Experts,

Planning to do a system upgrade from D350 to rp2470. I have few questions would like to ask.

1. eg. I would like to copy /etc/rc.config.d/ whole directories to rp2470. Just to verify the syntax is correct?

edit the file on rp2470 and D350
#vi .rhosts
hostname1 username1

on the D350 server
#rcp -rp LOCALdirectory DESThost:DESTdirectory

2.I have already done ignite tape backup so do I need to do extra backup before copying the files and in case system cannot boot up? especially /etc/ssh*,sendmail.cf, inetd.conf, inetd.sec, netdaemons, services ,netconf, hosts, passwd, group, fstab..cronjobs for all users, resolv.conf, nsswitch.conf + Ntp-setup.

Best regards
Leon

3 REPLIES 3
Ranjith_5
Honored Contributor

Re: Urgent: rcp command to do data migration

Hi Leon,

Yes the syntax is correct for rcp and You have taken enough pre cautions.

Make sure that .rhosts file that u r editing is in your home directory. Else you can put '++' in the first line of your /etc/hosts.equiv file of destination host.Dont forget to remove to remove this entry once you are through with copying files coz '++' allows any body to do rcp from any host. So be careful.

have a nice day..!!

Syam
Thierry Poels_1
Honored Contributor

Re: Urgent: rcp command to do data migration

hi,

1.
you need the .rhosts file only on the remote server.
If you have issues you can always simply make a tar backup and ftp it to the other server.
2.
looks OK, but depends on your situation: settings might also be in /opt or other application directories.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Slawomir Gora
Honored Contributor

Re: Urgent: rcp command to do data migration

Hi,

if you have simbolic links rcp is not good solution.