How does the backup and recovery function ensure data security
How to use the backup and recovery function of AnQiCMS? The system supports data backup and recovery (including static files), and can archive the complete package of database content, uploaded images, template files, etc. After system failure, data damage, or incorrect operation, the business environment can be quickly rebuilt through recovery backup, and the downtime and data loss can be minimized to the greatest extent.
Backup types and strategies
AnQiCMS supports two backup methods: full backup and incremental backup. The full backup will package all the data in the current system (database tables, static files, configuration files) into a compressed file, suitable for regular archiving or preventive backup before major operations.
Incremental backup only backs up the data that has changed since the last backup, smaller in size and faster in speed, suitable for frequent daily backups. However, since incremental backup depends on the previous full backup to be able to recover completely, the management complexity is higher, and it is recommended to use it when the data volume is large.
Developing a backup strategy requires considering several factors: data change frequency, acceptable data loss window, and storage cost. For daily updated websites, it is recommended to perform a full backup daily; for sites with lower update frequency, a weekly backup is sufficient. Backup files should be stored on independent storage media (such as cloud storage or external hard drives) to avoid single points of failure due to being stored in the same location as production data.
Execute backup operation
On the AnQiCMS backup and restore page, click the Create Backup button to start the full backup process. The system will automatically traverse the database and static file directories, packaging all data into a compressed file and generating a checksum for integrity verification.
During the backup process, the website can still be accessed normally, but there may be a brief decrease in performance due to increased IO load. It is recommended to perform backup operations during off-peak traffic periods to minimize the impact on user experience. After the backup is complete, the newly generated backup files can be seen in the backup list, including backup time, file size, checksum, and other information.
It is recommended to add descriptive labels to backup files, such as "v3.6.6 upgrade before backup", "Monthly archive - October 2026", etc., for easy search and management.
The process of restoring data
When you need to restore data, go to the backup and recovery page, find the target backup file in the backup list, click the restore button. The system will first verify the integrity of the backup file (by comparing checksums), confirm that there are no errors, and then start unzipping and importing.
The recovery process includes two stages: The first stage is database recovery, where the system re-executes the SQL scripts from the backup, restoring all table structures and data; The second stage is static file recovery, copying the images, templates, configuration files, etc. from the backup back to the original directory.
After recovery, the service needs to be restarted to make the new data effective. It is recommended to disable the website's external access (such as enabling maintenance mode) before recovery to avoid inconsistencies caused by new data being written during the recovery process.
Common questions
Q: Can backup files be recovered across servers?
A: Yes. The restore operation will completely replace the current data with the data from the backup, including any new articles or files uploaded by users. Therefore, it is essential to confirm whether the current data needs to be backed up separately before recovery.
Q: Will the restore operation overwrite existing data?
A: Yes. The restore operation will use the data from the backup to completely replace the current data, including any new articles or user-uploaded files. Therefore, it is essential to confirm whether the current data needs to be backed up separately before recovery.
Q: How much storage space does the backup file occupy?
A: It depends on the amount of data. For small and medium-sized enterprise websites, full backups are usually in the range of a few hundred MB to a few GB. Enabling compression algorithms can reduce the file size, but it will increase the time cost of backup and decompression.