Title: Hole-in-One Migration
Author: wikssq
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/hole-in-one-migration/assets/banner-772x250.png?rev=3833086)

![](https://ps.w.org/hole-in-one-migration/assets/icon.svg?rev=3833086)

# Hole-in-One Migration

 By [wikssq](https://profiles.wordpress.org/wikssq/)

[Download](https://downloads.wordpress.org/plugin/hole-in-one-migration.1.2.0.zip)

 * [Details](https://wordpress.org/plugins/hole-in-one-migration/#description)
 * [Reviews](https://wordpress.org/plugins/hole-in-one-migration/#reviews)
 *  [Installation](https://wordpress.org/plugins/hole-in-one-migration/#installation)
 * [Development](https://wordpress.org/plugins/hole-in-one-migration/#developers)

 [Support](https://wordpress.org/support/plugin/hole-in-one-migration/)

## Description

Hole-in-One Migration moves a complete WordPress site (database, media, plugins 
and themes) from one web host to another.

**Built to never time out.** Every task is split into small chunks. Each server 
request works for a few seconds, saves a checkpoint and stops, far below any PHP
or proxy timeout. If a request still fails (timeout, error 500/502/503/504, lost
connection, crashed PHP worker), the browser retries automatically from the last
checkpoint with smaller chunks. Nothing is lost and nothing is done twice.

 * **One file, standard formats:** website + database in a single `.tar.gz` (default)
   or `.zip`. Both open with any archive tool.
 * **Separate options:** export the website files only, or the database only.
 * **No upload limits:** archives are uploaded in small pieces (works even with 
   a 2 MB upload limit), and an interrupted upload resumes where it stopped. Huge
   sites can also be uploaded by FTP.
 * **The new site stays online:** files are extracted into a staging folder and 
   the database into temporary tables. At the very end the files are moved into 
   place folder by folder and the database is switched live in one atomic step. 
   Cancel before that, and the site is left as it was.
 * **Safe search & replace:** old addresses and server paths are replaced everywhere,
   including serialized data (widgets, page builders, theme options), JSON and URL-
   encoded data. A different table prefix on the new host is handled automatically.
 * **Gentle on the server:** low memory use, a configurable pause between requests,
   and nothing running in the background.
 * **Compatibility fixes:** MySQL 8 to MariaDB collations, unsupported storage engines,
   foreign keys, zero dates, generated columns and binary data.
 * **Resume anytime:** closed the browser? Open the page again and click “Resume”.
 * **Free forever:** no paid upgrade, no size limit.

### How to migrate your site

**1. Export the old site**

 1. On the OLD site, go to Migration  Export.
 2. Keep “Website + database in one file” and click **Start export**.
 3. Keep the tab open until it says “Export complete”, then click **Download**.

**2. Prepare the new host**

 1. Install a fresh, empty WordPress at the new host (any admin username and password).
 2. Install and activate Hole-in-One Migration there. Don’t install other plugins: 
    they come from your backup.

**3. Import**

 1. On the NEW site, go to Migration  Import, choose the file and click **Upload and
    import**.
     For very large files, upload the archive by FTP into the import folder
    shown on the Import page (`wp-content/hole-in-one-migration-…/import/`, with a 
    random name), reload the page and click **Import this file**.
 2. Wait for “Import complete”. You are logged out automatically.
 3. **Log in with the username and password of the OLD site.**

**4. Go live**

 1. Check a few pages. If you get “Not found” errors, go to Settings  Permalinks and
    click “Save Changes”.
 2. Point your domain’s DNS to the new host and set up SSL there.
 3. Delete the backup files on both sites (Migration  Backups).

## Installation

 1. Upload the `hole-in-one-migration` folder to `/wp-content/plugins/` or install 
    the zip via Plugins  Add New  Upload Plugin.
 2. Activate the plugin.
 3. Open **Migration** in the admin menu.

## FAQ

### What is included in the archive?

The `wp-content` folder (uploads, plugins, themes, must-use plugins, languages) 
and all database tables with the WordPress table prefix. Plugin, must-use plugin,
theme and uploads folders that the site keeps outside `wp-content` are included 
too, and are restored where the new site keeps them. WordPress core files and `wp-
config.php` are not included: the new host has its own, with its own database credentials.

### What is excluded by default?

Cache folders and cache drop-ins, debug logs, archives of other backup plugins, 
and must-use plugins of hosting companies (WP Engine, Kinsta, GoDaddy, Bluehost)
that would break on another host. You can turn this off and add your own exclusions
under Settings.

### It keeps saying “retrying”

The server is slow or overloaded. Let it run: the plugin automatically halves the
work per request after every failure. You can also lower “Work time per request”
in Settings.

### It says “Network error” and nothing starts

The browser got no answer at all, which usually means the browser blocked the request
itself. Try again in a private (incognito) window or in another browser. This happens
especially when you reach the new site through a hosts file entry before it is live:
the browser may still keep data of the old site at the same address, such as a service
worker. In your normal browser, remove that site’s service worker (developer tools,
Application, Service workers, Unregister) and clear its site data.

### The download stops or is slow

Start it again: downloads go through WordPress for logged-in administrators only
and support resuming, so the browser or a download manager continues where it stopped.
You can also fetch the file from the storage folder’s `backups/` folder by FTP.

### Is Multisite supported?

No, single sites only.

### Can I open the archive myself?

Yes. `.tar.gz` opens with 7-Zip, WinRAR, macOS Archive Utility or `tar -xzf`, and`.
zip` opens everywhere. Inside are `wp-content/`, `hio-database.sql` (table prefix
written as `__HIOP__`) and `hio-manifest.json`, plus `outside-wp-content/` if the
site keeps some folders outside wp-content.

### Where are backups stored? Are they safe?

In `wp-content/hole-in-one-migration-<random>/`, a folder whose name contains 96
random bits and is not linked anywhere. Nothing in it is served by the web server:
archives are downloaded through WordPress by administrators only. On Apache, LiteSpeed
and IIS the folder also denies all web access (`.htaccess`, `web.config`); on nginx,
where those files have no effect, the random name keeps it from being found. Still,
delete backups after downloading them, and delete archives you uploaded by FTP once
the import is done.

### How do I set my own Buy Me a Coffee link?

Edit `HOLEMI_BUYMEACOFFEE_URL` at the top of `hole-in-one-migration.php`, define
it in `wp-config.php`, or use the `holemi_buymeacoffee_url` filter. An empty string
hides the box.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Hole-in-One Migration” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Hole-in-One Migration” into your language.](https://translate.wordpress.org/projects/wp-plugins/hole-in-one-migration)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hole-in-one-migration/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hole-in-one-migration/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hole-in-one-migration/)
by [RSS](https://plugins.trac.wordpress.org/log/hole-in-one-migration/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.0

 * Changes from the second WordPress.org plugin review.
 * Every database query of the plugin now goes through `$wpdb->prepare()`, with 
   placeholders for all table names, column names and values. The only statements
   run as they are, are the ones of the SQL dump inside the archive.
 * The content address is taken from `content_url()`, so it uses the scheme (http
   or https) of the site.
 * Uninstalling finds other copies of the plugin with `get_plugins()`.
 * Requires WordPress 6.2 or newer (for the identifier placeholder of `$wpdb->prepare()`).
 * When the browser gets no answer at all (“Network error”), the message now suggests
   trying a private window or another browser, and the Help tab explains why (for
   example a service worker left by the old site when the new site is reached through
   a hosts file entry).

#### 1.1.1

 * Fix: in 1.1.0 nothing could be started from the Migration page. Export and import
   stopped at once with “Your login session expired”, and downloading a backup did
   not work, because the page and the server used different names for their requests.

#### 1.1.0

 * Changes from the WordPress.org plugin review.
 * All functions, classes, options, actions and scripts use the prefix `holemi` (
   was `hio`). Settings of earlier versions are not carried over.
 * The import no longer writes a must-use plugin. Instead, archive files are extracted
   into a staging folder and moved into place at the end, so the live site never
   runs half-extracted plugins or themes, and a cancelled import puts back the files
   it replaced.
 * Plugin, must-use plugin, theme and uploads folders outside `wp-content` are exported
   and restored where the new site keeps them. The new site keeps its own uploads
   folder setting.
 * Archives are no longer downloadable by their address: downloads go through WordPress
   for administrators only. The storage folder has a random name, so it cannot be
   found on nginx either. It moved from `wp-content/hio-migration/` to `wp-content/
   hole-in-one-migration-<random>/`; download backups you want to keep from the 
   old folder by FTP, then delete it.
 * Archives with folders outside wp-content use archive format 2; older versions
   refuse them instead of leaving those folders out.

#### 1.0.3

 * The plugin slug and text domain are now hole-in-one-migration, matching the WordPress.
   org slug. If you installed an earlier version from GitHub, it shows up as a second
   plugin: download any backups you want to keep, delete the old version, then install
   this one (deleting an old version also deletes the backups).

#### 1.0.2

 * Fix: an import could stop halfway with “session expired” when the old site had
   a must-use plugin that sets the site address (for example a leftover of another
   migration plugin). Must-use plugins and drop-ins are now put in place after the
   database switch, and ones that hard-code the old address are left out with a 
   warning.
 * Fix: on sites with a translation plugin (TranslatePress, WPML, Polylang) the 
   export could record the site address with a language path such as “/en”, which
   damaged links on import. Exports now use the real address, and archives made 
   with older versions are repaired during import.
 * The SQL file in the archive now declares its character set, so it also imports
   correctly with the mysql command-line tool.
 * Numbers in progress messages no longer show HTML code in languages that use a
   space as thousands separator.

#### 1.0.1

 * Passes the WordPress.org Plugin Check: error messages are escaped, all translatable
   strings have translator notes, and uploads are validated more strictly.
 * Translations can now reorder the placeholders in the retry message.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.2.0**
 *  Last updated **1 hour ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [backup](https://wordpress.org/plugins/tags/backup/)[clone](https://wordpress.org/plugins/tags/clone/)
   [migrate](https://wordpress.org/plugins/tags/migrate/)[migration](https://wordpress.org/plugins/tags/migration/)
   [move site](https://wordpress.org/plugins/tags/move-site/)
 *  [Advanced View](https://wordpress.org/plugins/hole-in-one-migration/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/hole-in-one-migration/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hole-in-one-migration/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hole-in-one-migration/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/wikssq)