DedeCms is a simple, practical, and open source PHP open source website management system. It is also the PHP CMS system with the most users.
Where are the database files backed up by dedecms?
After you usually use dedecms to back up data in the background, where will the database backup files be stored?
Database backup files are generally saved in the /dede/backup_data
directory.
How to back up the database using DEDECMS background:
The first method
Because the mysql database names of different virtual host spaces are different The same (because the prefixes are different, you will know it after using it), so you need to back up the database first, then restore it to the new space, and then regenerate the html. (Note: The versions of the MYSQL database of the new space and the original site must be both 4.1 or above, or 4.0 or below 4.0 to avoid problems.)
Specific steps:
1. Log in to the backend of the original site and back up the database (this database backup file is saved in ../dede/backup_data/).
2. Download the database backup file (ie../dede/backup_data/this folder) and website style template file (ie.../templets/this folder).
3. Reinstall the same version of dedecms system in the new space.
4. Upload the two folders ../dede/backup_data/ and ../templets/ of the original site to overwrite the corresponding folders in the new space, so that the database backup files and website of the original site are The style template has been placed on the new site.
Second method
Back up the DEDE website program method, log in to the background of dedecms, and operate as follows:
System Management—>Database Backup -> It is best to select all, otherwise some things will not be displayed. After the backup, use FTP to download the dede/backup-date folder to the local (this is a MYSQL database), and then add the three folders templets, uploads, and html. Also download it locally, upload the same version of the dede program to the new server, then upload the above files and overwrite them, log in to the backend (the login user and password are those of the original website), then click database restore in the backend, and then enter column management (required!! ), select any column to modify, (or save it without modifying it directly) (this is done to facilitate the smooth progress of the following updates), and finally update the html, and all updates are completed!
For more dedecms technical articles, please visit the dedecms usage tutorial column!
The above is the detailed content of Where are the database files backed up by dedecms?. For more information, please follow other related articles on the PHP Chinese website!