Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com

Best way to move entire VPS to New Server
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Best way to move entire VPS to New Server

I want to move my whole VPS which is hosting mine & clients sites to a new VPS. Or do I need to setup the new server and import accounts?

I'm using Centos Web Panel if that makes a difference.

Thanks

Comments

  • I haven't used CWP but it looks a lot like cPanel which runs on top of the OS inside the VPS.

    Are your changing hosting providers or just moving from from one VPS to another inside the same environment?

    If you are not changing providers ask the host to adjust the specs of your VPS.

    If you are changing providers you will most likely need to setup the new VPS, install the OS and CWP and do an export/backup -> import/restore inside CWP but you will have to deal with DNS changes with different IPs in case of the latter.

    iWF Hosting / H4Y Technologies LLC.... Since 2001!!
    http://iwfhosting.net ~ (866) 435-5642 ~ askus at iwfhosting d0t net

  • I'm looking at changing providers. CWP does have a restore account function didn't realise until you mentioned it. Thanks :D

  • jackbjackb Member, Provider
    edited February 2017

    If you're migrating from KVM or Xen to another KVM or Xen VPS, and both have rescue/live cd environments, you can use DD over SSH to copy your disk from one to the other.

    E.g. from the new VPS while in a live cd, try:

    ssh [email protected] "dd if=/dev/vda1" | dd of=/dev/vda1

    Naturally that method requires some downtime. You might be better off using the backup/restore as you mentioned above :)

    Afterburst - Awesome OpenVZ&KVM VPS in US+EU

  • AnthonySmithAnthonySmith Top Provider
    edited February 2017

    @n1kko https://lowendbox.com/blog/how-to-migrate-a-hosted-server-in-5-easy-steps-with-rsync/ dont follow that verbatim without reading it but essentially that will work for you 90% of the time, and if it fails you lose nothing anyway.

    Don't just copy the disk image as suggested above, especially if they are different virt types, your networking will be messed up beyond belief, your copying WAY more than you need too as you also copy empty space that way and lots of other crap you will have no fun with later.

    I am no longer active here, find me at https://talk.lowendspirit.com (Just like LET without the scams)

  • AnthonySmith said: lots of other crap

    Yeah, I'd advice to start fresh. If you move often, it might be wise to have some scripts to help you pack everything on the old host and setup everything on the new.

    don't buy what you don't need: you'll save money and will end up able to grab a quality VPS when really needed.

  • This seems to be some sort of a recurring theme/question.

    Please see: https://www.lowendtalk.com/discussion/comment/2025960/#Comment_2025960

    and/or

    https://www.lowendtalk.com/discussion/comment/1977972/#Comment_1977972

    Fundamentally/Conceptually it is same as what @AnthonySmith linked above. There are a few additional (important!) flags that you should include for rsync when copying (OS) files across machines: AXS (see man page for details).

    Other than the flags the only changes you should be making are the actual excludes that may vary on a case by case basis.

    You didn't mention if the VPS is OpenVZ or KVM/Xen. For OpenVZ you don't have to worry/bother about /boot but for KVM/Xen you need to copy /boot and also ensure that you run grub-install/update-grub as appropriate.

    Hope this helps.

Sign In or Register to comment.