dedecms backend database backup and migration process
Published: 2023-06-02
Normal use of a dedecms website requires two parts: website files and the database. Neither can be omitted.
After uploading the dedecms website files, you also need to import the database. If you only have a website backend backup and do not have an sql backup file in any other format, please reinstall dedecms according to the following procedure and perform the database restoration operation.
First, determine whether the corresponding backup exists under /wwwroot/data/backupdata/

If the backup file does not exist, the following method cannot be used
In File Management or ftp management, locate the files under wwwroot/install, delete the install_lock.txt file, rename "index.php.bak" to "index.php" , and rename "module-install.php.bak" to "module-install.php". Operate on these three files in total

Access the dedecms installation. Use http://yourdomain/install to perform the installation. Database information can be obtained from Virtual Host Management---Database Management
After the installation is complete, log in to the dedecms backend, enter the backend, go to System — Database Backup/Restore, and click Data Restore in the upper right corner to restore


Then the current password is the administrator password from when you backed up the database, not the password from your recent new installation. At this point, you need to log in again (it will automatically redirect to the login page)
Finally, update the website with one click, and the pages will be regenerated.
