We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Migration
Migration
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.
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
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
Make a complete back-up, scp the shit to another server.
And restore.
Make sure the dns is correctly
Re: Migration
Well, it's not too hard actually, you need make script and then you can make auto restore on your new server.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.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Migration
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
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
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
daansk44 wrote:Well fuck one by one hahaCode: 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
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?
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
More information needed, did you use local dns service or some services outside your server?daansk44 wrote:Do I need to manually edit every DNS record for every domain?
local dns - script
outside - manually or API/script if DNS provider can this.
Re: Migration
Local dns
Re: Migration
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'