Migration Topic is solved

General questions about VestaCP
Diamond1
Posts: 1
Joined: Mon Mar 27, 2017 3:59 am

Migration

Postby Diamond1 » Mon Mar 27, 2017 4:03 am

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.

daansk44
Posts: 39
Joined: Tue Sep 06, 2016 7:21 pm

Re: Migration  Topic is solved

Postby daansk44 » Wed Apr 05, 2017 11:32 am

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

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Migration

Postby skurudo » Wed Apr 05, 2017 3:00 pm

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.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

mehargags
Moderators
Posts: 788
Joined: Sat Sep 06, 2014 9:58 pm
Contact:

Re: Migration

Postby mehargags » Thu Apr 06, 2017 8:11 pm

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

daansk44
Posts: 39
Joined: Tue Sep 06, 2016 7:21 pm

Re: Migration

Postby daansk44 » Fri May 05, 2017 6:37 pm

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

skamasle
Collaborator
Posts: 382
Joined: Mon Feb 29, 2016 6:36 pm

Re: Migration

Postby skamasle » Fri May 05, 2017 6:49 pm

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

daansk44
Posts: 39
Joined: Tue Sep 06, 2016 7:21 pm

Re: Migration

Postby daansk44 » Tue Jun 20, 2017 1:37 pm

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?

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Migration

Postby skurudo » Mon Jul 24, 2017 2:08 pm

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.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

daansk44
Posts: 39
Joined: Tue Sep 06, 2016 7:21 pm

Re: Migration

Postby daansk44 » Tue Aug 22, 2017 11:17 am

Local dns

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Migration

Postby skurudo » Thu Aug 31, 2017 1:12 pm

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'
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “General Discussion”



Who is online

Users browsing this forum: intop and 11 guests

cron