OpenVZ Forum


Home » Mailing lists » Users » rsync to cone VPS - Urgent for me.
rsync to cone VPS - Urgent for me. [message #3163] Mon, 15 May 2006 17:56 Go to next message
abhishek jain is currently offline  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 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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
>
> ------------------------------------------------------------ ------------
>
Previous Topic: Do i need to stop Plesk / etc for openVZ to install
Next Topic: can access vps from server not from network
Goto Forum:
  


Current Time: Wed Aug 07 05:26:52 GMT 2024

Total time taken to generate the page: 0.02943 seconds