{"id":31006,"date":"2021-02-05T10:57:47","date_gmt":"2021-02-05T02:57:47","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&p=31006"},"modified":"2022-09-08T21:35:25","modified_gmt":"2022-09-08T13:35:25","slug":"vesta-migrations","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/vesta-migrations","title":{"rendered":"Vesta Migrations"},"content":{"rendered":"\t\t
If we are looking to migrate a website or a group of websites from one Vesta server to another, we can use the \u2018v-backup-user<\/strong>\u2019 and \u2018v-restore-user<\/strong>\u2019 commands. The usage format has been given below:\u00a0<\/p> Note<\/strong>: Here you need to replace the username \u2018admin\u2019 with the correct one which you need to migrate.<\/p><\/li> By default, the backup file will be stored in \u2018\/home\/backup<\/strong>\u2019 directory or in \/backup directory as per the version you are using. So, we can transfer it using the following format: Note<\/strong>: Replace the username if you need to restore it to another user.<\/p><\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t There are no automatic ways available to perform this migration. So we need to take backup using \u2018v-backup-user<\/strong>\u2019 command and then move the backup file to the destination.<\/p> When migrating from Vesta to another panel such as cPanel, usually we are getting a MySQL compatibility issue<\/strong>. It is because Vesta is using an older version of MySQL<\/strong> by default and almost all other panels are using newer ones.\u00a0<\/p> So the possible option to make the MySQL\u00a0backup compatible with the newer versions. A sample format is provided below:<\/p> The resolution will differ according to the error getting during the MySQL backup restoration.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tv-backup-user admin<\/code><\/p>
scp \/home\/backup\/admin.2018-06-02.tar root@new-serverIP:\/home\/backup\/<\/code><\/p><\/li>
cd \/home\/backup<\/code>v-restore-user admin admin.2018-06-02.tar<\/code><\/p>Migration from Vesta to Other Panels<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
v-backup-user admin
<\/code><\/li>
By default, the backup file will be stored in \u2018\/home\/backup<\/strong>\u2019 directory. So, we can transfer it using the following format:
\nscp \/home\/backup\/admin.2018-06-02.tar root@new-serverIP:\/home\/backup\/
<\/code><\/li>
tar -xvf \/home\/backup\/admin.2018-06-02.tar
<\/code><\/li>Expected Issues<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
sed -i \u2018s\/utf8mb4_unicode_520_ci\/utf8mb4_unicode_ci\/g\u2019 backup.sql<\/code><\/p>