The upgrade announcement requires backup of files, databases, and custom templates. What is considered secure for each type of backup?

📅 2026-10-13 👁️ 16

The program PbootCMS in the upgrade announcement of V3.2.29 writes the pre-upgrade actions very directly: be sure to back up the website files, database, and custom templates before the upgrade, and clear the cache and check the background function entry after the upgrade is completed. This set is not just a formality - the consequences of losing files, data, and templates are completely different, and after the backup, you still need to verify one by one whether they can be restored, otherwise it is just a compressed package taking up disk space.

What accidents do the three types of backups prevent?

The package prevents 「overwriting or tampering with program code」:When the upgrade script replaces the core file, if the original file is modified during secondary development, the changes will be lost; The announcement requires backing up the website files, which is to leave a copy for comparison. Database backup prevents 「failure of structural changes」:Version upgrades often accompany table structure adjustments, and when an error occurs during the upgrade, the content library is the most valuable asset that cannot be lost. Custom template backup prevents 「the front-end style cannot be restored」:Template files are independent of the program itself, and after the upgrade, the behavior of the template engine changes, and without an old template for reference, you can only rewrite it.

Check points for each type of backup

After the backup is done, don't rush to upgrade, inspect item by item: After unzipping the file package, check the directory count and the existence of key files against the list; pay special attention to the theme directory and the upload directory;The standard for testing database backups is only one——whether it can be restored on a clean instance, and whether the table structure and the number of data rows match, and the size of the backup file does not count.The template backup needs to verify the 'restore position', place the old template back in the template directory, and the front page can return to the style before the upgrade to be considered qualified. AnQiCMS's backup and restore capabilities also include static files in the backup range, and uploaded image attachments will be taken away with the data, this item can reduce the maintenance of a 'file is there, but the image is gone' pitfall;Version 3.6.5 also made an expansion of the template backup, and the multiple copies of the template are stored within the system instead of being copied manually.

The minimum closed loop for recovery drills

Practice in three steps: choose a non-peak period, restore each of the three types of backups to a separate isolated environment; run through the homepage, list page, article detail page, and backend login four points in the new environment;Record the time it takes to restore. The meaning of the time-consuming number is to determine the If you are using Baota panel or aaPanel, then you need to include the output of the scheduled task in the check, to confirm that the backup task is really running according to plan, and not just configured without running.

Two things to do on the upgrade day

According to the notice, clear the cache and check the back-end feature entry after the upgrade is a final action: the former verifies whether the front-end rendering has used the new template, and the latter confirms that the login, user management, and other paths have not been changed during the upgrade process. After checking, remove the maintenance reminder and keep a record of the day's access logs. When an abnormal style or error occurs, you can match the timeline.

Common questions

Ask: Is it okay to only back up the database and not the files? Answer: If the database is lost, the content is really gone, but if the files are lost, you can still reinstall the program, so the priority is the database; but for sites that have modified the original files or installed templates themselves, lacking file backups means that the front-end will be directly messed up when rolling back, and it is not recommended to save on this.

Ask: How many backups should be kept? Answer: At least keep one before the upgrade and one from the last stable version, rolling retention; only keep the latest one of the day, as the operations gone bad on the day will contaminate both the original and the backup at the same time.

Ask: How often should the recovery drill be performed? Answer: It must be done before a major version upgrade; during normal times, just select one category per quarter, rotate to verify files, databases, and templates, and avoid any category in the three types never being proven recoverable.

Related articles

After the minor version upgrade, the old version of the table file format is no longer supported, where will the content import process of the site break in several cycles?

A minor upgrade to the data read and write component may directly remove support for the old table format, causing batch import to break at four points: template header, historical files, script connection, and batch tasks. Remedies are arranged in three paths: convert format, keep old files, and change to import interface; AnQiCMS provides a self-check list for ZIP and Excel batch import and import/archive interfaces.

2026-10-13

Documents deleted can still be retrieved from the recycle bin, should you backup once before retrieving?

In AnQiCMS, deleting a formal document is not a physical deletion, the document will be moved to the recycle bin, and the content can still be restored; documents have four statuses: formal, draft, pending release, and recycle bin. The draft can be previewed with the preview parameter. It is recommended to make a complete data backup (including static files) before the recovery operation, to avoid the overlapping of recovered content with the existing version, and to check the consistency of the status and visibility on the front page after recovery.

2026-10-13

How to batch replace old links within the site after changing the domain name or column name, and what should be kept before the change

The final sequence of the revised version is: First, make a full data backup and leave a position for rollback; then use the full site replacement tool to batch replace keywords or links in the main text; then configure 301 redirects for the old addresses and connect existing external references to new addresses; finally, manually check the navigation settings and single page entry. The replacement tool manages the main text and link content, navigation, watermark, email reminders and other site settings do not automatically adjust with the replacement and need to be confirmed item by item.

2026-10-12

Where should the sitemap be placed in the subdirectory or root directory, and what determines the range of covered addresses?

The range of addresses covered by the sitemap is determined by the directory ownership rules of the Sitemap protocol: a map can only contain addresses with the same prefix as the path. Placing it in a subdirectory cannot reach other directories. This article explains the ownership rules, the risk of missing pages when placing subdirectories, and the two methods of moving up to the root directory or splitting by directory and adding indexes. The address migration should be equipped with a 301 redirect.

2026-10-12

The O&M checklist for the new station launch *days: where are the port monitoring, backup tasks, and logs assigned in each step?

The new station launch follows five fixed steps in *days: confirm service listening (AnQiCMS default port 8001), connect to reverse proxy and domain name, establish a backup task containing static files and practice a recovery once on the day, set up access and error logs, and finally run through the front and back-end functional points. There are slight differences in the landing points of the Baota panel one-click deployment and Docker image paths, which are marked separately in the checklist.

2026-10-13

After content review blocks the release, how to check and modify the reason for the block?

When content review blocks the release, first determine whether it was intercepted by sensitive word filtering or released after being rewritten with keywords. Investigate by following three steps: column word list, hit records, and text context; there are three methods of modification: correcting the expression, adjusting the word list, and limiting the rules to specific columns. The content generated by AI writing also needs to go through this review chain, and should not be skipped because the source is a model.

2026-10-13

How to configure reverse proxy and domain access since the program listens by default on port 8001

AnQiCMS listens on port 8001 by default, and upon formal launch, it does not allow users to directly access the port number. Instead, it is reversed proxied by Web servers such as Nginx, where 80 and 443 are terminated at the proxy layer, HTTPS certificates are configured, and 301 redirects are used to consolidate old access with ports and http to a standard domain name. This article describes the configuration points along the two deployment paths of Baota panel and Docker.

2026-10-13

How to fill in the template fields when importing articles in bulk with Excel to avoid losing content

AnQiCMS supports batch import of documents in ZIP compressed packages and Excel spreadsheets. The Excel channel requires filling out the form according to field rules: the title column is required, the status column determines whether the content goes into draft, pending release, or formal document, and the text and keyword columns correspond to document fields; if there is an error during import, check the draft area and recycling bin first to retrieve, handle duplicate entries after processing, and do not resubmit the entire table directly.

2026-10-13