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
- On the OLD site, go to Migration Export.
- Keep “Website + database in one file” and click Start export.
- Keep the tab open until it says “Export complete”, then click Download.
2. Prepare the new host
- Install a fresh, empty WordPress at the new host (any admin username and password).
- Install and activate Hole-in-One Migration there. Don’t install other plugins: they come from your backup.
3. Import
- 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. - Wait for “Import complete”. You are logged out automatically.
- Log in with the username and password of the OLD site.
4. Go live
- Check a few pages. If you get “Not found” errors, go to Settings Permalinks and click “Save Changes”.
- Point your domain’s DNS to the new host and set up SSL there.
- Delete the backup files on both sites (Migration Backups).
Installation
- Upload the
hole-in-one-migrationfolder to/wp-content/plugins/or install the zip via Plugins Add New Upload Plugin. - Activate the plugin.
- Open Migration in the admin menu.
FAQ
-
What is included in the archive?
-
The
wp-contentfolder (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 outsidewp-contentare included too, and are restored where the new site keeps them. WordPress core files andwp-config.phpare 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.gzopens with 7-Zip, WinRAR, macOS Archive Utility ortar -xzf, and.zipopens everywhere. Inside arewp-content/,hio-database.sql(table prefix written as__HIOP__) andhio-manifest.json, plusoutside-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_URLat the top ofhole-in-one-migration.php, define it inwp-config.php, or use theholemi_buymeacoffee_urlfilter. 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.
ContributorsTranslate “Hole-in-One Migration” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by 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(washio). 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-contentare 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/towp-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.
