Page 1 of 1

Migrate server

Posted: Thu Nov 01, 2018 12:45 pm
by jose
Hi. I have vps1 (IP1) and vps2 (IP2)

If i backup vesta in vps1 and i try to restore it in vps2, should i do something special because they have different IP?

(in vps1 i have 50 websites with DNS with IP1)

Re: Migrate server

Posted: Fri Nov 02, 2018 8:55 am
by plutocrat
I haven't tried this, but I think the accepted way to migrate is to set up Vesta on the second server in an identical configuration. Then you backup a user on the first server, copy the backup over to the new server, and then restore it on the new server.

For example:
v-backup-user admin
copy /backup/admin.2018-10-31_05-10-04.tar to new vesta install. Put it in the /backup folder. Then ...
v-restore-user admin admin.2018-10-31_05-10-04.tar

If you do it that way, you don't have to worry about the IP address.

Re: Migrate server

Posted: Fri Nov 02, 2018 9:40 am
by SergioB
Hi Jose, I would like to know how you did, if you had any problem, or as said plutocrat did not have any problem with the IP
Greetings

Re: Migrate server

Posted: Fri Nov 02, 2018 12:36 pm
by jose
You will have problems with the ip if its not the same. 100% sure

The DNS have the old IP.

Re: Migrate server

Posted: Sun Nov 04, 2018 7:03 am
by plutocrat
Oh well yes, if you're using the VestaCP for DNS, then you'll have to also change the nameservers to the new server IP.

If you're using external DNS, then you'll have to also update the A, CNAME and MX records appropriately.

I thought the original question was more about changing the IP address of a VestaCP server, which is a bit fiddly, but possible.