Operating System - HP-UX
1752397 Members
6092 Online
108788 Solutions
New Discussion юеВ

Re: want to copy the data from one server to another server

 
SOLVED
Go to solution
arun khatwani
Frequent Advisor

want to copy the data from one server to another server

i want to copy data from one server to another server by SCP and also i want to start the copy process in background and also that the process doesnot terminate if i logout from one system using nohup

what will be the command will it works
nohup scp * myhp01 /aaa/ &

3 REPLIES 3
Srimalik
Valued Contributor
Solution

Re: want to copy the data from one server to another server

If you have setup keys on both the machines then i think

"nohup scp * myhp01:/aaa/ &"

will do the copying.

-Sri

abandon all hope, ye who enter here..
Srimalik
Valued Contributor

Re: want to copy the data from one server to another server

adding a -r option would be useful if you have directories also.

"nohup scp -r * myhp01:/aaa/ &"


dun know why I missed it(-r) in my earlier reply, no points for this please :-).
abandon all hope, ye who enter here..
arun khatwani
Frequent Advisor

Re: want to copy the data from one server to another server

thanks sri