How to migrate data from one virtual host to another virtual host
Published: 2014-12-13
Go to Business Management - Virtual Host Management - find the ftp name of the site to be migrated, and click the Manage link after it to enter.
If the website uses a mysql database (skip this if mysql is not used), please click on the left Database Management -- Database -- Import/Export via SQL.
Enter the interface shown in the figure, and directly click the “Start Export” button to export.


Go to 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.

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

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


6. If there is no mysql database, the website migration is complete at this point.
If there is a mysql database, please use the SQL file import/export function and the Import/Restore function. Select the sql file in the Browse Directory, click Start Import, and wait for the program to import the sql file into the new database.

7 . Note: If mysql or mssql database is used, you also need to go into 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 you are using an mssql database, please refer tohttps://www.west.cn/faq/list.asp?unid=816 Export Database Backup
Refer tohttps://www.west.cn/faq/list.asp?unid=513 Restore Database Backup
```