Title: InstaMigrate
Author: InstaWP
Published: <strong>2026 年 4 月 3 日</strong>
Last modified: 2026 年 4 月 3 日

---

搜索插件

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

# InstaMigrate

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

[下载](https://downloads.wordpress.org/plugin/instamigrate.1.5.0.zip)

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

 [支持](https://wordpress.org/support/plugin/instamigrate/)

## 描述

InstaMigrate provides authenticated REST API endpoints that enable full WordPress
site migrations between servers. It handles database export/import with binary-safe
hex encoding, file archiving and transfer, and serialization-aware search-replace
for domain changes.

**Features:**

 * Database export with binary-safe hex encoding (preserves serialized PHP data)
 * Database import with streaming line-by-line parsing (handles large dumps)
 * File upload, download, archiving (tar.gz/zip), and extraction
 * Serialization-aware search-replace for domain migrations
 * Dual authentication: API key header or WordPress Application Passwords
 * WP-CLI detection (informational, reported in status endpoint)
 * Admin UI showing API key and endpoint documentation

**Important:** This plugin grants full database and filesystem access via its REST
API. Deactivate and delete it immediately after your migration is complete.

## 安装

 1. Upload the `insta-migrate` folder to `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Tools > InstaMigrate to find your API key
 4. Use the API key in the `X-Insta-Key` header for all REST API requests
 5. **Remove the plugin after migration is complete**

## 常见问题

### Where do I find my API key?

Go to Tools > InstaMigrate in your WordPress admin. The API key is displayed there
and can be regenerated if needed.

### Is this plugin safe to leave active?

No. This plugin exposes powerful migration endpoints. Always deactivate and delete
it after your migration is complete.

### Does it handle serialized data during search-replace?

Yes. The search-replace engine correctly unserializes PHP data, performs replacements
recursively, then re-serializes with updated byte counts.

### What authentication methods are supported?

Two methods: (1) `X-Insta-Key` header with the plugin API key, or (2) WordPress 
Application Passwords via HTTP Basic Auth (requires admin privileges).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「InstaMigrate」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/instamigrate)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.5.0

 * Internal version alignment (header and constant now both report 1.5.0)
 * No functional changes from 1.4.0

#### 1.4.0

 * Security: Permission callbacks now require `manage_network` (super admin) on 
   multisite, instead of `manage_options` which subsite admins may have
 * Security: File concat (`/files/concat`) output restricted to plugin temp directory
   only
 * Security: File search-replace (`/files/search-replace`) restricted to uploads
   directory only
 * Security: File upload (`/files/upload`) destination restricted to uploads directory
   only
 * Security: File search-replace now uses WP_Filesystem for reads and writes instead
   of direct PHP file functions
 * Change: Temp directory moved from `wp-content/insta-migrate-tmp/` to `wp-content/
   uploads/insta-migrate-tmp/` per wp.org guidelines

#### 1.3.0

 * Removed all exec()/shell_exec() calls per wp.org plugin guidelines
 * Removed `/wp-cli` REST endpoint (required exec)
 * Archive creation and extraction now use PharData/ZipArchive exclusively
 * Binary detection (has_wp_cli) now uses hardcoded path checks only

#### 1.2.0

 * New: `/db/fix-prefix` endpoint — fixes usermeta meta_key and options option_name
   values after a migration where the table prefix changed. Prevents users losing
   roles/capabilities when the sed prefix-rewrite missed single-quoted values.

#### 1.1.0

 * New: `/files/concat` endpoint — concatenate chunked file uploads on the server(
   for large archives exceeding PHP upload limit)
 * New: `/files/search-replace` endpoint — search-replace strings within static 
   files on disk (CSS/JS/JSON), used for Elementor CSS domain replacement after 
   DB search-replace
 * Fix: Numeric columns (INT, BIGINT, DECIMAL, etc.) now exported as plain numbers,
   not hex-encoded. Prevents MySQL from misinterpreting hex literals as integers.

#### 1.0.0

 * Initial release
 * Database export/import with hex encoding
 * File upload, download, archive, extract
 * Serialization-aware search-replace
 * Dual authentication (API key + Application Passwords)
 * WP-CLI detection in status endpoint
 * Admin UI with API key management

## 额外信息

 *  版本 **1.5.0**
 *  最后更新：**7 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/instamigrate/)
 * 标签
 * [backup](https://cn.wordpress.org/plugins/tags/backup/)[clone](https://cn.wordpress.org/plugins/tags/clone/)
   [database](https://cn.wordpress.org/plugins/tags/database/)[migration](https://cn.wordpress.org/plugins/tags/migration/)
   [transfer](https://cn.wordpress.org/plugins/tags/transfer/)
 *  [高级视图](https://cn.wordpress.org/plugins/instamigrate/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/instamigrate/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/instamigrate/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/instamigrate/)