How to migrate data from one virtual host to another virtual host

Published: 2014-12-13

```html
  1. Go to Business Management - Virtual Host Management - find the FTP name of the site to be migrated, and click Manage next to it to enter.


  2. If the website uses a MySQL database (skip if not using MySQL), please click Database Management -- Database -- Import/Export via SQL on the left .

    Enter the interface shown in the figure, and directly click the “Start Export” button to export.


    image.png

    image.png

  3. Enter File Management, as shown in the figure, check wwwroot, and click the “Compress” button in the toolbar to package. It takes some time to complete; if the space exceeds 50%, packaging will fail.


    image.png

 4. After a while, check the compressed package, click Calculate Size to view the file size of the compressed package, and calculate again after some time. If the file size no longer changes or increases, it means packaging is complete.

image.png

     

 5. Use FTP to download the compressed package to your local computer, then upload the local compressed package to outside the wwwroot directory of the new host. Move the mouse over the compressed package to decompress it online.

image.pngimage.png

 6. If there is no MySQL database, the website migration is now complete.

     If there is a MySQL database, please use the SQL file import/export function. Use the Import/Restore function, select the SQL file from the browse directory, click Start Import, and wait for the program to import the SQL file into the new database.    

image.png

7 . Note: If MySQL or MSSQL database is used, you also need to enter your database configuration file and change the database account, database name, and password to the information of the database provided with the current space!

8 . If using an MSSQL database, please refer tohttps://www.west.cn/faq/list.asp?unid=816  to export the database backup

      Refer tohttps://www.west.cn/faq/list.asp?unid=513  to restore the database backup

```