rsync to cone VPS - Urgent for me. [message #3163] |
Mon, 15 May 2006 17:56 |
abhishek jain
Messages: 9 Registered: May 2006
|
Junior Member |
|
|
Dear Friends,
Thanks all i need to clone a VPS , one VPS is a running VPS over whom i have
root access only and is hosted ona server of which i do not have root
access.
Now i want to clone this VPS on to a new VPS (the server of which i have
root access), I mean i want the VPS to be moved to mine Server.
How to do so,
I think rsync can be used , but i do not know how to use that ,pl . guide me
towards that.
Thanks,
Jain
|
|
|
Re: rsync to cone VPS - Urgent for me. [message #3164 is a reply to message #3163] |
Mon, 15 May 2006 18:13 |
|
Stop most of the processes -- as much as you can, leaving just init and
sshd -- and do rsync.
Something like this should work (from your own server):
# mkdir /vz/private/200
# rsync -aH --progress root@x.x.x.x:/ /vz/private/200/
Then create a VPS config:
vzctl set 200 --applyconfig vps.basic --save
Then try to start your new VPS:
vzctl start 200
Next step is to resolve the issues that might arise. As an example: a
VPS may be failed to start because it tries to set up system time (which
is usually forbidden in a VPS). So what you need to do in this very case
is to disable or comment out the code which sets the system clock. Since
this is usually shell code it should not create any problem.
Regards,
Kir.
abhishek jain wrote:
> Dear Friends,
> Thanks all i need to clone a VPS , one VPS is a running VPS over whom
> i have root access only and is hosted ona server of which i do not
> have root access.
> Now i want to clone this VPS on to a new VPS (the server of which i
> have root access), I mean i want the VPS to be moved to mine Server.
> How to do so,
> I think rsync can be used , but i do not know how to use that ,pl .
> guide me towards that.
> Thanks,
> Jain
>
> ------------------------------------------------------------ ------------
>
|
|
|