Vesta Migrations

Migrating Vesta to Vesta


If we are looking to migrate a website or a group of websites from one Vesta server to another, we can use the commands 'v-backup-user' and 'v-restore-user' commands. The usage format has been given below:

1. Initiate backup from source server root console:

v-backup-user admin

Here you need to replace the username 'admin' with the correct one which you need to migrate.

2. Once the backup process is done, we need to copy the backup file from the source server to destination server using SCP. By default, the backup file will be stored in '/home/backup' directory or in /backup directory as per the version you are using. So, we can transfer it using the following format:

scp /home/backup/admin.2018-06-02.tar root@new-serverIP:/home/backup/

3. Once the backup is there on the new server, do the following commands from the destination server:

cd /home/backup
v-restore-user admin admin.2018-06-02.tar

Replace the username if you need to restore it to another user.

Migration from Vesta to Other Panels

There are no automatic ways available to perform this migration. So we need to take backup using 'v-backup-user' command and then move the backup file to the destination.

1. Initiate backup from source server root console:

v-backup-user admin

2. Once the backup process is done, we need to copy the backup file from the source server to destination server using SCP. By default, the backup file will be stored in '/home/backup' directory. So, we can transfer it using the following format:

scp /home/backup/admin.2018-06-02.tar root@new-serverIP:/home/backup/

3. From destination server, extract the backup file:

tar -xvf /home/backup/admin.2018-06-02.tar

4. From the extracted folder, you can get the public_html contents and MySQL backup. You need to copy it to the new home directory and restore the MySQL backup using 'mysql' command.


Expected Issues


When migrating from Vesta to another panel such as cPanel, usually we are getting a MySQL compatibility issue. It is because Vesta is using an older version of MySQL by default and almost all other panels are using newer ones. So the possible option to make the MySQL backup compatible with the newer versions. A sample format is provided below:

sed -i 's/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g' backup.sql

The resolution will differ according to the error getting during the MySQL backup restoration.

 

  • vesta migration, vesta to vesta
  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...