{"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&#038;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<div data-elementor-type=\"wp-post\" data-elementor-id=\"31006\" class=\"elementor elementor-31006\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-63bb1f0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"63bb1f0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-32b7691\" data-id=\"32b7691\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e7fab61 elementor-widget elementor-widget-heading\" data-id=\"e7fab61\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Vesta Migrations<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f78c26 elementor-widget elementor-widget-heading\" data-id=\"8f78c26\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Migrating from Vesta to Vesta<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0b7215e elementor-widget elementor-widget-text-editor\" data-id=\"0b7215e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>If we are looking to migrate a website or a group of websites from one Vesta server to another, we can use the \u2018<strong>v-backup-user<\/strong>\u2019 and \u2018<strong>v-restore-user<\/strong>\u2019 commands. The usage format has been given below:\u00a0<\/p><ol><li>Firstly, initiate <strong>backup<\/strong> from source server root console:<p><code>v-backup-user admin<\/code><\/p><p><strong>Note<\/strong>: Here you need to replace the username \u2018admin\u2019 with the correct one which you need to migrate.<\/p><\/li><li>Then, once the backup process is done, we need to <strong>copy the backup file<\/strong> from the source server to <strong>destination server<\/strong> using <strong>SCP<\/strong>.<p>By default, the backup file will be stored in \u2018<strong>\/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:<br \/><code><br \/>scp \/home\/backup\/admin.2018-06-02.tar root@new-serverIP:\/home\/backup\/<\/code><\/p><\/li><li>Once the backup is there on the new server, do the following commands from the destination server:<p><code><br \/>cd \/home\/backup<\/code><br \/><code>v-restore-user admin admin.2018-06-02.tar<\/code><\/p><p><strong>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<div class=\"elementor-element elementor-element-ecb9d14 elementor-widget elementor-widget-heading\" data-id=\"ecb9d14\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Migration from Vesta to Other Panels<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fefc53d elementor-widget elementor-widget-text-editor\" data-id=\"fefc53d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>There are no automatic ways available to perform this migration. So we need to take backup using \u2018<strong>v-backup-user<\/strong>\u2019 command and then move the backup file to the destination.<\/p><ol><li>Firstly, initiate backup from source server root console:<br \/><code><br \/>v-backup-user admin<br \/><br \/><\/code><\/li><li>Once the backup process is done, we need to <strong>copy the backup file<\/strong> from the source server to <strong>destination server<\/strong> using <strong>SCP<\/strong>.<br \/>By default, the backup file will be stored in \u2018<strong>\/home\/backup<\/strong>\u2019 directory. So, we can transfer it using the following format:<br \/><code><br \/>\nscp \/home\/backup\/admin.2018-06-02.tar root@new-serverIP:\/home\/backup\/<br \/><br \/><\/code><\/li><li>After that, from destination server, extract the backup file:<code><br \/><br \/>tar -xvf \/home\/backup\/admin.2018-06-02.tar<br \/><br \/><\/code><\/li><li>From the extracted folder, you can get the<em> public_html<\/em> contents and MySQL backup. You need to <strong>copy<\/strong> it to the <strong>new home directory<\/strong> and <strong>restore the MySQL backup<\/strong> using \u2018<strong>mysql<\/strong>\u2019 command.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-db52b20 elementor-widget elementor-widget-heading\" data-id=\"db52b20\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Expected Issues<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bf2fd4a elementor-widget elementor-widget-text-editor\" data-id=\"bf2fd4a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>When migrating from Vesta to another panel such as cPanel, usually we are getting a MySQL <strong>compatibility issue<\/strong>. It is because Vesta is using an <strong>older version of MySQL<\/strong> by default and almost all other panels are using newer ones.\u00a0<\/p><p>So the possible option to make the MySQL\u00a0backup compatible with the newer versions. A sample format is provided below:<\/p><p><code>sed -i \u2018s\/utf8mb4_unicode_520_ci\/utf8mb4_unicode_ci\/g\u2019 backup.sql<\/code><\/p><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\t<div class=\"elementor-element elementor-element-3727f78 elementor-widget elementor-widget-text-editor\" data-id=\"3727f78\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Check out the next article on <a href=\"https:\/\/www.casbay.com\/guide\/kb\/how-to-use-lets-encrypt-on-vestacp-login-panel-port-8083\/\">How to use Let&#8217;s Encrypt on VestaCP login panel<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Vesta Migrations 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 \u2018v-backup-user\u2019 and \u2018v-restore-user\u2019 commands. The usage format has been given below: Firstly, initiate backup from source server root console:v-backup-user adminNote: Here you need to replace [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[117],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31006"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=31006"}],"version-history":[{"count":1,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31006\/revisions"}],"predecessor-version":[{"id":31831,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/31006\/revisions\/31831"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=31006"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=31006"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=31006"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=31006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}