{"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
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Vesta Migrations<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Migrating from Vesta to Vesta<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\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>

  1. Firstly, initiate backup<\/strong> from source server root console:

    v-backup-user admin<\/code><\/p>

    Note<\/strong>: Here you need to replace the username \u2018admin\u2019 with the correct one which you need to migrate.<\/p><\/li>

  2. Then, once the backup process is done, we need to copy the backup file<\/strong> from the source server to destination server<\/strong> using SCP<\/strong>.

    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:

    scp \/home\/backup\/admin.2018-06-02.tar root@new-serverIP:\/home\/backup\/<\/code><\/p><\/li>

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


    cd \/home\/backup<\/code>
    v-restore-user admin admin.2018-06-02.tar<\/code><\/p>

    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

    \n\t\t\t\t
    \n\t\t\t

    Migration from Vesta to Other Panels<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\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>

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

      v-backup-user admin

      <\/code><\/li>
    2. Once the backup process is done, we need to copy the backup file<\/strong> from the source server to destination server<\/strong> using SCP<\/strong>.
      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>
    3. After that, from destination server, extract the backup file:

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

      <\/code><\/li>
    4. From the extracted folder, you can get the public_html<\/em> contents and MySQL backup. You need to copy<\/strong> it to the new home directory<\/strong> and restore the MySQL backup<\/strong> using \u2018mysql<\/strong>\u2019 command.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t

      Expected Issues<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t\t\t\t

      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>

      sed -i \u2018s\/utf8mb4_unicode_520_ci\/utf8mb4_unicode_ci\/g\u2019 backup.sql<\/code><\/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

      \n\t\t\t\t
      \n\t\t\t\t\t\t\t

      Check out the next article on How to use Let’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":"

      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 […]<\/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}]}}