Page 1 of 2

Migration

Posted: Mon Mar 27, 2017 4:03 am
by Diamond1
Hello fellas,
I am a free hosting provider from cloudwards.es, and I have more than 100 accounts on vestacp and I wanted to shift to a new dedicated, but in documentation I only see how to migrate one user, Is there a way to migrate all of the users at one time as you can understand how difficult it is to migrate 100+ users.
I need help urgently.

Re: Migration

Posted: Wed Apr 05, 2017 11:32 am
by daansk44
If its urgent you should pay for the help ;)

Make a complete back-up, scp the shit to another server.
And restore.

Make sure the dns is correctly

Re: Migration

Posted: Wed Apr 05, 2017 3:00 pm
by skurudo
Diamond1 wrote:Is there a way to migrate all of the users at one time as you can understand how difficult it is to migrate 100+ users.I need help urgently.
Well, it's not too hard actually, you need make script and then you can make auto restore on your new server.

Re: Migration

Posted: Thu Apr 06, 2017 8:11 pm
by mehargags
so how do you backup all your 100+ users daily ? or do you even do backups ?

if you do, just copy backups from old to new server and restore them one by one using a script
There is nothing so unnerving in this

Re: Migration

Posted: Fri May 05, 2017 6:37 pm
by daansk44
Well fuck one by one haha

Code: Select all

#!/bin/bash
# declare an array called array and define 3 vales
array=( user1 user2 user3 )
for i in "${array[@]}"
do
v-restore-user $i $i.date.date
  echo $i
done

Re: Migration

Posted: Fri May 05, 2017 6:49 pm
by skamasle
daansk44 wrote:Well fuck one by one haha

Code: Select all

#!/bin/bash
# declare an array called array and define 3 vales
array=( user1 user2 user3 )
for i in "${array[@]}"
do
v-restore-user $i $i.date.date
  echo $i
done

Code: Select all

v-list-users plain | awk '{ print $1 }' |while read user; do v-backup-user $user; done

Re: Migration

Posted: Tue Jun 20, 2017 1:37 pm
by daansk44
One of the problems with Migrations is that you have to change the DNS of every website.

I have one server in France and another in Germany.
I want to migrate everything to that another server, with a different IP (but with the same hostname).

Do I need to manually edit every DNS record for every domain?

Re: Migration

Posted: Mon Jul 24, 2017 2:08 pm
by skurudo
daansk44 wrote:Do I need to manually edit every DNS record for every domain?
More information needed, did you use local dns service or some services outside your server?

local dns - script
outside - manually or API/script if DNS provider can this.

Re: Migration

Posted: Tue Aug 22, 2017 11:17 am
by daansk44
Local dns

Re: Migration

Posted: Thu Aug 31, 2017 1:12 pm
by skurudo
Something like this:

Code: Select all

find /etc/ -type f -print0 | xargs -0 sed -i 's/192.168.0.1/192.168.0.2/g'
find /usr/local/vesta/ type f -print0 | xargs -0 sed -i  's/192.168.0.1/192.168.0.2/g'
find /home/*/conf/ type f -print0 | xargs -0 sed -i  's/192.168.0.1/192.168.0.2/g'