{"id":404259,"date":"2026-12-02T09:28:51","date_gmt":"2026-12-02T09:28:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ns-migration-push\/"},"modified":"2026-12-02T16:09:03","modified_gmt":"2026-12-02T16:09:03","slug":"ns-migration-push","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ns-migration-push\/","author":15287181,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"7.1.5","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"NS Migration Push","header_author":"Nuno Sarmento","header_description":"Push a staging site to live (or any WordPress site to another) with an atomic database swap, plugin, theme and media sync, and one-click rollback. Works from wp-admin only; supports multisite main sites.","last_updated":"2026-12-02 16:09:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/nunosarmento\/","rating":5,"author_block_rating":0,"active_installs":0,"downloads":284,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"nunosarmento","date":"2026-12-02 16:09:03","revision":3840546}},"upgrade_notice":{"1.1.0":"<p>Install the same version on both sites: 1.1.0 signs its requests and does not work with 1.0.0.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3839550,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3839550,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3839550,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3839550,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3839550,"resolution":"1","location":"assets","locale":"","width":1110,"height":464},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3839550,"resolution":"2","location":"assets","locale":"","width":1110,"height":1133},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3839550,"resolution":"3","location":"assets","locale":"","width":1110,"height":523},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3839550,"resolution":"4","location":"assets","locale":"","width":1110,"height":509},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3839550,"resolution":"5","location":"assets","locale":"","width":1110,"height":396}},"screenshots":{"1":"Pre-flight checks, including content that would be lost on the destination.","2":"Choosing tables, plugins, themes, media and the options to keep.","3":"Ready to apply: summary of what will change.","4":"Applied, with rollback still available.","5":"Source site: switching access on and copying the access key."}},"plugin_section":[],"plugin_tags":[16271,4155,441,10708,19979],"plugin_category":[51,59],"plugin_contributors":[131530],"plugin_business_model":[],"class_list":["post-404259","plugin","type-plugin","status-publish","hentry","plugin_tags-deployment","plugin_tags-migration","plugin_tags-multisite","plugin_tags-rollback","plugin_tags-staging","plugin_category-multisite","plugin_category-utilities-and-tools","plugin_contributors-nunosarmento","plugin_committers-nunosarmento"],"banners":{"banner":"https:\/\/ps.w.org\/ns-migration-push\/assets\/banner-772x250.png?rev=3839550","banner_2x":"https:\/\/ps.w.org\/ns-migration-push\/assets\/banner-1544x500.png?rev=3839550","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ns-migration-push\/assets\/icon-128x128.png?rev=3839550","icon_2x":"https:\/\/ps.w.org\/ns-migration-push\/assets\/icon-256x256.png?rev=3839550","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ns-migration-push\/assets\/screenshot-1.png?rev=3839550","caption":"Pre-flight checks, including content that would be lost on the destination."},{"src":"https:\/\/ps.w.org\/ns-migration-push\/assets\/screenshot-2.png?rev=3839550","caption":"Choosing tables, plugins, themes, media and the options to keep."},{"src":"https:\/\/ps.w.org\/ns-migration-push\/assets\/screenshot-3.png?rev=3839550","caption":"Ready to apply: summary of what will change."},{"src":"https:\/\/ps.w.org\/ns-migration-push\/assets\/screenshot-4.png?rev=3839550","caption":"Applied, with rollback still available."},{"src":"https:\/\/ps.w.org\/ns-migration-push\/assets\/screenshot-5.png?rev=3839550","caption":"Source site: switching access on and copying the access key."}],"raw_content":"<!--section=description-->\n<p>NS Migration Push replaces one WordPress site (the destination, usually live) with another (the source, usually staging), without SSH, SFTP or phpMyAdmin. Install it on both sites, switch on access on the source, paste the source URL and access key into the destination, and follow the screens.<\/p>\n\n<p>The destination does all the work. It pulls the source's database, plugins, themes and new media over an authenticated connection and prepares everything off to the side, in temporary tables and a private folder. The live site keeps running unchanged until you click Apply. Apply swaps the tables with a single atomic <code>RENAME TABLE<\/code> and moves the prepared folders into place, which takes a few seconds. The previous tables and folders are kept, so a single click puts everything back until you choose to finish.<\/p>\n\n<h4>What it does<\/h4>\n\n<ul>\n<li>Copies every selected source table into the destination, keeping the destination's table prefix.<\/li>\n<li>Rewrites the source URL and server path to the destination's, including inside serialised data (objects included, without unserialising them), JSON-escaped and URL-encoded values.<\/li>\n<li>Compares plugin and theme folders by checksum and replaces only the folders that differ. Plugins on the destination that the source doesn't have are never deleted.<\/li>\n<li>Copies media that is new or changed on the source. Nothing is ever deleted from the destination's uploads.<\/li>\n<li>Checks every downloaded PHP file against the destination's PHP version before anything is applied, so a broken plugin can't take the site down.<\/li>\n<li>Clears the object cache and OPcache after Apply and after rollback, and asks WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, SiteGround Speed Optimizer and Autoptimize to purge their caches.<\/li>\n<\/ul>\n\n<h4>What it keeps from the destination<\/h4>\n\n<ul>\n<li>The site URLs, search engine visibility (so a \"discourage search engines\" staging setting never reaches live), the upload path and user roles. You can add more options to this list (for example caching or security plugin settings), with <code>*<\/code> as a wildcard.<\/li>\n<li>Tables that look like logs, statistics or sessions, and Wordfence data. These are unticked by default and you can tick them.<\/li>\n<li>Plugins that are active on the destination but not on the source (security, caching, mail and similar plugins are ticked to stay active).<\/li>\n<li>Plugins and themes where the source has an older version, so the destination is never downgraded by default.<\/li>\n<\/ul>\n\n<h4>Safety checks before anything changes<\/h4>\n\n<ul>\n<li>WordPress and PHP versions on both sites, database privileges, write access, and whether folders can be swapped with instant renames.<\/li>\n<li>Content added or edited on the destination after the source was copied, which a replacement would lose. These are listed by name.<\/li>\n<li>On multisite, which plugins are network-activated on one side only.<\/li>\n<li>Free disk space.<\/li>\n<\/ul>\n\n<h4>Multisite<\/h4>\n\n<p>On a multisite network the tool replaces the main site only. Users, the network tables and all other subsites are left exactly as they are. Plugin and theme files are shared by the whole network, so subsites run the source's versions of any folders that are replaced. On a single-site destination the users tables can be replaced too.<\/p>\n\n<h4>Security<\/h4>\n\n<ul>\n<li>Source access is off by default, is switched on by an administrator for 48 hours at a time and can be switched off at any moment.<\/li>\n<li>Each request is signed with HMAC-SHA256 using the access key, a timestamp and a single-use nonce. The key itself never travels, and captured requests can't be replayed.<\/li>\n<li>Repeated failed requests from one address are refused for 15 minutes.<\/li>\n<li>HTTPS is required for the source URL.<\/li>\n<li>Only super admins on multisite, and administrators on single sites, can use the tool.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects only to the WordPress site whose URL you enter as the source, and only from the destination's server while you run a migration. It sends signed requests to that site's REST API and receives its database rows, file lists and files. No data is sent to the plugin author or to any third party.<\/p>\n\n<h3>Video demo<\/h3>\n\n<p>A one-minute walkthrough: connecting the two sites, the pre-flight checks, preparing, applying and the rollback option.<\/p>\n\n<p>https:\/\/youtu.be\/_5aBBXN4mjs<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin on both sites. On multisite, network-activate it or activate it on the main site.<\/li>\n<li>On the source, go to Tools &gt; NS Migration Push, choose \"This is the source site\" and switch access on.<\/li>\n<li>On the destination, go to Tools &gt; NS Migration Push and choose \"This is the destination site\". Paste the source URL and access key, then click \"Connect and check\".<\/li>\n<li>Review the checks and selections, then click \"Prepare\". The destination doesn't change during this step.<\/li>\n<li>Make sure you have a current backup, then click \"Apply\".<\/li>\n<li>Check the site. Click \"Roll back\" if anything is wrong, or \"Finish\" to delete the rollback data.<\/li>\n<li>Switch access off on the source.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20need%20ssh%2C%20sftp%20or%20database%20access%3F\"><h3>Does it need SSH, SFTP or database access?<\/h3><\/dt>\n<dd><p>No. Everything runs in wp-admin through normal web requests, in short steps that stay well below PHP and proxy timeouts.<\/p><\/dd>\n<dt id=\"can%20i%20push%20live%20to%20staging%20instead%3F\"><h3>Can I push live to staging instead?<\/h3><\/dt>\n<dd><p>Yes. Either site can be the source; the destination is always the site that gets replaced.<\/p><\/dd>\n<dt id=\"how%20long%20does%20the%20destination%20stay%20down%20during%20apply%3F\"><h3>How long does the destination stay down during Apply?<\/h3><\/dt>\n<dd><p>It doesn't go down. The database swap is a single atomic rename and folders are moved with renames, so Apply usually takes a few seconds.<\/p><\/dd>\n<dt id=\"what%20if%20something%20goes%20wrong%20after%20apply%3F\"><h3>What if something goes wrong after Apply?<\/h3><\/dt>\n<dd><p>Click \"Roll back\". The original tables, plugin and theme folders and changed media are restored, and new media added by the migration is removed. Rollback is available until you click \"Finish\".<\/p><\/dd>\n<dt id=\"the%20destination%20says%20the%20source%20returned%20an%20unexpected%20response\"><h3>The destination says the source returned an unexpected response<\/h3><\/dt>\n<dd><p>Bot protection or a firewall on the source (for example Cloudways Bot Protection, Cloudflare or a security plugin) is challenging the destination's server requests. Switch it off for the source while migrating, or allow the destination server's IP address.<\/p><\/dd>\n<dt id=\"is%20everything%20copied%3F\"><h3>Is everything copied?<\/h3><\/dt>\n<dd><p>The database tables you select, the plugins and themes folders, and media in the uploads folder. Must-use plugins, drop-ins (such as object-cache.php or advanced-cache.php) and wp-config.php are not copied, because they are usually specific to each server.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20cloudflare%2C%20redis%20or%20wp%20rocket%3F\"><h3>Does it work with Cloudflare, Redis or WP Rocket?<\/h3><\/dt>\n<dd><p>Yes. Requests to the source are server-to-server, and the object cache and the common page-caching plugins are cleared after Apply. If Cloudflare caches HTML for the destination, purge it after Apply.<\/p><\/dd>\n<dt id=\"can%20developers%20change%20the%20defaults%3F\"><h3>Can developers change the defaults?<\/h3><\/dt>\n<dd><p>Yes, with these filters:<\/p>\n\n<ul>\n<li><code>nsmpush_table_default<\/code>: whether a source table is ticked by default.<\/li>\n<li><code>nsmpush_log_table_pattern<\/code>: the pattern for log and statistics tables.<\/li>\n<li><code>nsmpush_skip_plugins<\/code>: plugin folders not copied by default.<\/li>\n<li><code>nsmpush_keep_active_plugins<\/code>: plugins kept active on the destination by default.<\/li>\n<li><code>nsmpush_default_preserve_options<\/code>: destination options kept by default.<\/li>\n<li><code>nsmpush_default_uploads_exclude<\/code>: upload paths not copied by default.<\/li>\n<li><code>nsmpush_step_seconds<\/code>: how long each step works before reporting progress (default 20).<\/li>\n<li><code>nsmpush_allow_http<\/code>: allow a plain-HTTP source URL, for local development only.<\/li>\n<li><code>nsmpush_sslverify<\/code>: SSL certificate verification for requests to the source.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Requests are signed with HMAC-SHA256 with replay protection; the access key is no longer sent with requests.<\/li>\n<li>Failed requests are throttled per address.<\/li>\n<li>Working files are kept in uploads\/ns-migration-push\/, with a check that folders can be swapped with instant renames.<\/li>\n<li>Tables are created from a validated column and index description; no SQL text from the source is executed.<\/li>\n<li>File writes, downloads and folder moves refuse any path that leaves its expected folder or passes through a symbolic link.<\/li>\n<li>Media that appears on the destination after the comparison is never overwritten; large plugin and theme files are checksum- and syntax-checked like the rest.<\/li>\n<li>Roll back only removes media the migration created and that is unchanged since.<\/li>\n<li>Usernames and emails from the source are no longer stored on disk.<\/li>\n<li>Neutral source and destination wording, so it works in either direction.<\/li>\n<li>Tables that look like logs, statistics or sessions are kept from the destination by default.<\/li>\n<li>Plugins or themes older on the source are not copied by default.<\/li>\n<li>Warns about content added or edited on the destination since the source was copied.<\/li>\n<li>Reports network-activation differences on multisite.<\/li>\n<li>PHP syntax check of downloaded plugin and theme code against the destination's PHP version.<\/li>\n<li>Filters for all defaults.<\/li>\n<li>Requires WordPress 6.2 or later.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Push a staging site to live from wp-admin: atomic database swap, plugin, theme and media sync, and one-click rollback. Multisite main sites supported.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/404259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=404259"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nunosarmento"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=404259"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=404259"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=404259"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=404259"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=404259"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=404259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}