Wesbytes Knowledge Base

Search our articles or browse by category below

Vesta Migrations

Last modified: July 2, 2022
You are here:
Estimated reading time: 1 min

Migrating from 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 ‘v-backup-user’ and ‘v-restore-user’ commands. The usage format has been given below: 

  1. Firstly, initiate backup from source server root console:

    v-backup-user admin

    Note: Here you need to replace the username ‘admin’ with the correct one which you need to migrate.

  2. Then, 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

    Note: 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. Firstly, 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. After that, 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.

Was this article helpful?
Dislike 0
Views: 6