Batch migrating old website articles, is it more stable to import using a compressed package or a table?

📅 2026-11-01 👁️ 0

The old station articles need to be moved in bulk. Is it more stable to import using a ZIP compressed package or an Excel spreadsheet? The answer depends on two things: whether the migration includes attachments and whether the content has a stable field structure. It is more stable to move the entire site with images and static files using a compressed package; for text that is mainly structured fields and needs to be mapped in bulk into articles, using a spreadsheet is more convenient. Both entry methods are supported by AnQiCMS bulk import capabilities.

Decide whether to include attachments before the migration.

Make a preliminary judgment: whether to move the images, attachments, and download files of the old station articles together. If you do, you need to retain the filename and relative path relationship, which is the strong point of ZIP compression packages; if not, only move the text and metadata, tables are more intuitive, and it is also convenient for manual proofreading. This step determines all subsequent actions, do not mix the two, otherwise, the same batch of articles may appear in two types of database paths, and it is difficult to locate the error when it goes wrong.

The applicable boundaries of the two entry methods

| Migration scenario | Recommended entry | Reason | Points to note | | Mixed text and images with local attachments | ZIP archive | Files and text stored together | Do not have too deep a directory hierarchy | | Field-standardized batch creation | Excel table | Columns directly map to content model fields | Date and null value writing should be unified | | Repeated incremental import | import/archive interface | Can query whether it exists by title | Check before writing to avoid repetition | | Old data with large structural differences | Table first and then supplement attachments | Two steps for easy verification | The second step aligns by title |

Map the column mapping before importing the table

The stability of table import mainly comes from the content model: first confirm the field list of the target model, and then decide the table columns. The common four columns are title, text, category, and tags. If there are custom fields (such as model, region, duration), the column names must correspond to the fields one by one, and temporary tags should not be inserted into the text. When exporting old data, it is convenient to do three cleaning tasks: remove the absolute addresses pointing to the old domain name in the rich text, unify the time format, and delete empty text records. If these three tasks are not done, a large amount of dirty data that needs to be modified item by item will appear after import.

How to arrange the order of compressed package import

Suggested to organize the import of compressed packages in batches: one batch corresponds to the content of a column or a quarter, and the file names within the package retain the original identifiers of the old site (such as article id or slug) for easy verification after import. Do not make the package too large, and only roll back a small batch if individual files fail. After the import is completed, first take a sample to check three types of pages: text with images, download pages with attachments, and model pages with custom fields, as these are the most prone to problems during format conversion.

Perform verification with the interface before re-importing.

The most likely to occur during cross-batch relocation is re-injection. AnQiCMS provides an interface for importing document content /api/import/archive and supports querying whether the document already exists by title, making 'first check then write' a fixed process: before each import, query the title once, and if a match is found, manually judge whether to overwrite or skip. For old sites that need long-term synchronization, this entry is more stable than repeatedly manually exporting tables.

Contingency and inspection items after migration failure

The formal document deletion will not physically delete the content, it will be moved to the recycle bin and can be restored, so when the batch is mistakenly exported, remove it first and then check, don't worry about permanent loss. At the end of the process, check four items: whether the total number of articles is consistent with the old site list; whether the images on the sampled pages can be displayed; whether the categories and tags fall into the target columns; whether the redirection mapping from the old address to the new address has been configured. Confirm that everything is correct before handling the inclusion-related actions, to avoid making changes to two layers at the same time during the migration period.

Common questions

What to do if the old site export format is not standardized?

Perform a one-time cleaning script, unify the format into two products: table columns and attachment directories, and then separately proceed with table import and compressed package import. Do not expect the import end to tolerate errors.

How many articles can be moved at one time?

Batch by category is more stable; control each batch to a size that can be manually sampled, so that when problems arise, they can be located to a batch rather than the entire site.

Will the ranking drop after the move?

The main risks during the migration period are changes in addresses and missing pages. Maintain a stable new address structure, redirect old addresses one by one, and then conduct sampling verification against high-traffic pages of the old site. Fluctuations are usually controllable.

Related articles

How to coordinate the scheduling of content in holidays, scheduled publishing, and pending publishing status

When scheduling holidays in advance, the scheduled release solves the timing point, and the draft status to be released solves the review progress. AnQiCMS divides documents into four states: formal, draft, scheduled release, and recycling bin. The draft link with preview parameters can be reviewed before release, and deletion is moved to the recycling bin instead of physical deletion. There is a fallback path if scheduling fails.

2026-11-01

What items need to be checked when switching hosts on the day of switching, and parsing, certificates, and email cannot be missed.

Check the access chain on the day of the host switch: whether the resolution points to the new host, whether the certificate is complete and available at the new address, whether the pseudo-static rules and 301 redirect are effective, and whether the form and interface can be written. Before the switch, lower the validity period of the resolution record and make a complete backup containing static files. After the switch, keep the old account for more than a week and observe the log and traffic distribution. The record of the email sending identity should also be checked separately.

2026-11-01

Static files and dynamic pages are deployed together, where should the cache be placed?

Cache is divided into three layers according to resource type: static products such as images and attachments are placed in the outer layer, and page content such as list pages and detail pages are placed in the middle layer and can be set with a shorter expiration period, and back-end and interface caching is not performed. The purpose of layering is to make the source only happen in the truly real-time part, and the page loading speed is improved accordingly, while the immediate visibility of back-end changes will not be blocked by caching.

2026-11-01

How should batch 301 redirects be arranged during the domain name and version update, and how long will it take for old links to recover from dropping收录

The batch 301 redirect for domain change or version update should first lock the new address structure, and then follow the mapping rules of 'priority for isomorphic migration, followed by structural changes, and merging and deleting as a last resort.' The recovery pace depends on whether the crawling and active push keep up: if the list is still the old address, the recovery will be significantly prolonged. Handle the four lines of site map, pseudo-static rules, old links in the text, and push together, which is usually counted by week rather than by day.

2026-11-01

Migrating from a hosting website building platform to a self-built content system, how to arrange the migration sequence to avoid losing indexing

Migrating in a fixed sequence ensures not losing indexing: First export the content list and make a complete backup, then use ZIP compression packages or Excel spreadsheets to batch import content. When importing, check for duplicate titles to avoid repeated搬运, and finally, set up 301 redirect mappings for old addresses and observe for two weeks. This article provides the key operational points and verification methods for each step, covering the backup scope of data and static files and the usage standards of the import interface.

2026-11-01

When replacing the content in bulk on the entire site, which fields need to be backed up before they are changed?

Before using the bulk replacement function to change content on the entire site, it is recommended to back up three types of objects: document data (including static files), template files, and navigation and watermark configurations. Keywords and links in the text can be covered by the recycle bin and piece-by-piece rollback, but once configuration items such as navigation, watermark, and template are overwritten, there is no ready-made recovery entry. Take a snapshot before replacement and confirm the correct scope after replacement with front-end inspection.

2026-11-01

After enabling pseudo-static, the links with query parameters jump to the wrong page, which URLs should be tested before going online?

The static alias modifies the address resolution entry, and if the rules are mistakenly damaged, the first problem to appear is with links containing query parameters, pagination, tag pages, and Chinese paths. There are similar repair records in the update logs of third-party open-source systems. This article provides the five types of links that must be tested before going online, the configuration order and rollback method of custom static alias rules, as well as which link to fix first when enabled simultaneously with the 301 redirect.

2026-11-01

After the PHP version enters the stage of only fixing security issues, when should the site be upgraded at the latest?

The PHP official policy is to actively support each branch for two years, and then add two more years for fixing only critical security issues. For example, the active support for 8.2 ends on December 31, 2024, and the security support extends to December 31, 2026; the security support for 8.3, 8.4, and 8.5 respectively ends at the end of 2027, 2028, and 2029. The bottom line for a site completing a major version upgrade is the end date of the security support for that branch, and it is a safe practice to start scheduling after entering the security-only stage.

2026-11-01