Title: Onecraft Site Migration
Author: onecraftne
Published: <strong>2026 年 8 月 11 日</strong>
Last modified: 2026 年 8 月 11 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/onecraft-site-migration.svg)

# Onecraft Site Migration

 作者：[onecraftne](https://profiles.wordpress.org/onecraftne/)

[下载](https://downloads.wordpress.org/plugin/onecraft-site-migration.0.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/onecraft-site-migration/#description)
 * [评价](https://cn.wordpress.org/plugins/onecraft-site-migration/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/onecraft-site-migration/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/onecraft-site-migration/#developers)

 [支持](https://wordpress.org/support/plugin/onecraft-site-migration/)

## 描述

Onecraft Site Migration moves a single WordPress website from one place to another.

On the source site you export everything into one downloadable package; on the destination
you upload that package and import it. The URLs are rewritten to the new domain 
automatically.

It is built to be reliable on ordinary shared hosting, where a single PHP
 request
cannot do all the work:

 * **Runs in small, resumable steps.** Long jobs are split into bounded “ticks”
   
   driven from your browser, so they never rely on one giant request.
 * **Streams, never loads everything into memory.** Files and database tables are
   
   processed in chunks, so a large file or table will not exhaust memory.
 * **Serialization-safe search & replace.** When the domain changes, PHP-serialized
   
   option and meta values are rewritten correctly (string lengths recomputed).
 * **Validates before it touches the destination.** The uploaded package’s
    checksums
   are verified before anything is imported.
 * **Automatic rollback.** The destination database is backed up before import; 
   if
    the database import fails, it is restored automatically.

This is an original implementation. It does not use or copy any other plugin’s
 
archive format, code, or interface.

#### What is migrated

 * All of `wp-content` — themes, plugins, and uploaded media.
 * The database — posts, pages, settings, users, and so on.

#### What is not migrated

 * WordPress core files (`wp-admin` / `wp-includes`) and `wp-config.php`. The
    destination
   must already be a working WordPress install; the destination keeps its own core
   and database connection settings.

## 安装

 1. Upload the plugin ZIP under **Plugins  Add New  Upload Plugin**, then
     activate
    it (do this on both the source and destination sites).
 2. On the **source** site, open **Migration**, optionally enter the destination
     URL,
    and click **Start export**. When it finishes, download the package from the Recent
    jobs list.
 3. On the **destination** site, open **Migration**, enter the **source site URL**,
    
    choose the downloaded package, and click **Upload & import**.
 4. Keep the browser tab open until the progress bar reports completion.

## 常见问题

### Does the destination need WordPress already installed?

Yes. The package contains `wp-content` and the database, not WordPress core.
 Install
a fresh WordPress on the destination first, then import.

### Is importing destructive?

Yes. Importing overwrites the destination’s database and `wp-content` files. Use

a fresh or disposable destination site. The database is backed up before import 
and restored automatically if the database import fails; replaced files are also
backed up within the job’s working directory.

### What if the domain is different on the destination?

That is the normal case. Enter the source site URL during import and the plugin

rewrites the old domain to the new one across the database (serialized data included).
Note that a scheme change (http  https) or a change of subdirectory is not rewritten
in this version.

### Does the table prefix need to match?

Yes, in this version the source and destination must use the same database table

prefix (for example `wp_`).

### Where is the export package stored?

Under `wp-content/uploads/ocsm-work/<job-id>/`. That directory is protected from

direct web access; download the package through the plugin’s Download button, which
is capability- and nonce-checked.

### Does it call home or send my data anywhere?

No. The plugin makes no external requests and includes no tracking.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Onecraft Site Migration」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ onecraftne ](https://profiles.wordpress.org/onecraftne/)

[帮助将「Onecraft Site Migration」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/onecraft-site-migration)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/onecraft-site-migration/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/onecraft-site-migration/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/onecraft-site-migration/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/onecraft-site-migration/)。

## 更新日志

#### 0.1.0

 * Initial release: browser-driven export and import.
 * Resumable, chunked file scan, database export, and packaging (ZIP).
 * Chunked, resumable, checksum-verified upload and package validation.
 * File extraction to staging, streaming database import, serialization-safe URL
   
   replacement, and promotion of files into place with a move-aside backup.
 * Automatic pre-import database backup with rollback on failure.
 * Environment diagnostics, job logging, and capability + nonce protected REST
    
   endpoints.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **7.0.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/onecraft-site-migration/)
 * 标签
 * [backup](https://cn.wordpress.org/plugins/tags/backup/)[clone](https://cn.wordpress.org/plugins/tags/clone/)
   [migrate](https://cn.wordpress.org/plugins/tags/migrate/)[migration](https://cn.wordpress.org/plugins/tags/migration/)
   [move](https://cn.wordpress.org/plugins/tags/move/)
 *  [高级视图](https://cn.wordpress.org/plugins/onecraft-site-migration/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/onecraft-site-migration/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/onecraft-site-migration/reviews/)

## 贡献者

 *   [ onecraftne ](https://profiles.wordpress.org/onecraftne/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/onecraft-site-migration/)