WP Staging – DB & File Duplicator & Migration


WP Staging for WordPress Migration & Cloning

This duplicator plugin allows you to create an exact copy of your entire website for staging or development purposes in seconds.
(Exact time depends on the size of your website)

It creates a clone of your website into a subfolder of your main WordPress installation including an entire copy of your database.

Note: For pushing & migrating plugins and theme files to live site, check out the pro edition https://wp-staging.com/

All the time-consumptive database and file copying operations are done in the background. The plugin even automatically does an entire search & replace of all serialized links and paths.

This plugin works even on the smallest shared hosting servers.

WP Staging can help you to protect your website from being broken or unavailable because of installing untested plugin updates!

Note: WordPress 5.x has been shipped with a new visual editor called Gutenberg. Use WP Staging to check if Gutenberg editor is working as intended on your website and that all used plugins are compatible with that new editor.

Main Features

  • No SASS service. All data belongs to you and stays on your server.
  • Easy to use! Just install it and click on «CREATE NEW STAGING SITE».
  • No server timeouts on huge websites or/and small hosting servers
  • Staging website will be available from example.com/staging-site
  • Very fast – Migration process takes only a few seconds or minutes, depending on the website’s size and server I/O power.
  • Only administrators can access the staging website. Login with the same credentials you use on your production site.
  • SEO friendly: The staging website is unavailable to search engines due to a custom login prompt and no-index header.
  • The admin bar on the staging website will be orange colored and shows clearly that you work on the staging site.
  • All database tables will be duplicated and get a new prefix beginning with wpstg(int)_.
  • As default the staging website will be copied into a subfolder.
  • Extensive logging features
  • Supports all main web servers including Apache, Nginx, and Microsoft IIS
  • [Premium]: Choose a separate database and select a custom directory for cloning
  • [Premium]: Make the staging website available from a subdomain like dev.example.com
  • [Premium]: Push & migrate plugins and themes to production website.
  • [Premium]: Define user roles that should receive access to the staging site only. For instance, clients or external developers.
  • [Premium]: Migration and cloning of WordPress multisites

Note: Some features are Premium. Which means you need WP Staging Pro to use those features. You can get WP Staging Premium here!

  • New: Compatible with WordFence & All In One WP Security & Firewall

Additional Features WP Staging Pro Edition

  • Cloning and migration of WordPress multisites
  • Define a separate database and a custom directory for cloning
  • Clone your website into a subdomain
  • Specify certain user roles for accessing the staging site
  • Copy all modifications from staging site to the production website

Change your workflow of updating themes and plugins data:

  1. Use WP Staging to clone a production website for staging, testing or backup purposes
  2. Create a backup of your website
  3. Customize theme, configuration, update or install new plugins
  4. Test everything on your staging site
  5. If everything works on the staging site start the migration and copy all modifications to your production site!

Why should I use a staging website?

Plugin updates and theme customizations should be tested on a staging platform first before they are done on your production website.
It’s recommended having the staging platform on the same server where the production website is located to use the same hardware and software environment for your test website and to catch all possible errors during testing.

Before you update a plugin or going to install a new one, it is highly recommended to check out the modifications on a clone of your production website.
This makes sure that any modifications work on your production website without throwing unexpected errors or preventing your site from loading. Better known as the «WordPress blank page error».

Testing a plugin update before installing it in a live environment isn´t done very often by most users because existing staging solutions are too complex and need a lot of time to create a
an up-to-date copy of your website.

Some users are also afraid of installing plugins updates because they follow the rule «never touch a running system» with having in mind that untested updates are increasing the risk of breaking their site.
This is one of the main reasons why WordPress installations are often outdated, not updated at all and insecure because of this non-update behavior.

It’s time to change this, so use «WP Staging» for cloning and migration of WordPress websites

Can´t I just use my local wordpress development system like xampp / lampp for testing purposes?

You can test your website locally but if your local hardware and software environment is not a 100% exact clone of your production server there is NO guarantee that every aspect of your local copy is working on your production website exactly as you expect it.
There are some obvious things like differences in the config of PHP and the server you are running but even such non-obvious settings like the amount of ram or the CPU performance which can lead to unexpected results later on your production website.
There are dozens of other possible cause of failure which can not be handled well when you are testing your changes on a local platform only.

Esto es en lo que WP Staging sobresale… ¡La clonación y creación de sitios de pruebas simplificada!

I just want to migrate the database from one installation to another

Si deseas migrar tu base de datos local a un sitio de producción ya existente, puedes utilizar una herramienta como WP Migrate DB.
WP Staging es sólo para crear un sitio de pruebas con los datos más recientes de tu sitio de producción. Así que funciona al revés que WP Migrate DB.

Ambas herramientas son complementarias entre sí.

What are the benefits compared to a plugin like Duplicator?

Para empezar, me encanta el plugin Duplicator. Es una gran herramienta para la migración desde el sitio de desarrollo a producción o desde el sitio de producción a uno de desarrollo.
La desventaja es que Duplicator necesita ajustes, intervenciones manuales y prerequisitos para esto. Duplicator también necesita algunas habilidades para poder crear un sitio de desarrollo / producción, mientras WP Staging sólo requiere un clic.

Sin embargo, Duplicator está mejor pensado para ser una herramienta para la creación por primera vez de su sitio de producción. Esto es algo que es muy práctico y potente.

Por lo tanto, si has creado un sitio de desarrollo hospedado o local y necesitas migrar este sitio la primera vez en tu dominio de producción, ¡No hay nada malo en usar el plugin Duplicador! Si necesitas todos los datos de producción más recientes como publicaciones, plugins, actualizados, datos de temas y estilos en un entorno de prueba, ¡entonces recomiendo usar WP Staging en su lugar!

I need your feedback

Se le han dedicado cientos de horas para hacer que este plugin funcione incluso en los paquetes de alojamiento compartido más pequeños, pero estoy limitado a probar esto sólo en un puñado de diferentes servidores por lo que necesito tu ayuda:
Abre una solicitud de soporte y describe tu problema con exactitud. En wp-content/wp-staging/logs encontrarás extensos registros. Echa un vistazo a ellos y hazme saber las líneas de error lanzadas.


Permalinks are disabled on the staging site because the staging site is cloned into a subfolder and permalinks are not working on all systems
without doing changes to the .htaccess (Apache server) or nginx.conf (Nginx Server).
Read here how to activate permalinks on the staging site.

How to install and setup?

Instálalo a través del panel de administración y ‘Plugins’, haz clic en ‘Añadir nuevo’ y busca los plugins para ‘Staging’. Instala el plugin con ‘Instalar ahora’. Después de la instalación ve a la página de ajustes ‘Staging’ y haz tus ajustes ahí.

Sitio oficial



  • Step 1. Create a new WordPress staging site
  • Step 2. Scanning your website for files and database tables
  • Step 3. WordPress Staging site creation in progress
  • Finish!


  1. Download the file «wp-staging.zip»:
  2. Upload and install it via the WordPress plugin backend wp-admin > plugins > add new > uploads
  3. Activa el plugin desde el menú ‘Plugins’ de WordPress.

Preguntas frecuentes

  • I can not log in to the staging site
    If you are using a security plugin like All In One WP Security & Firewall you need to install the latest version of WP Staging.
    Go to WP Staging > Settings and add the slug to the custom login page which you set up in All In One WP Security & Firewall plugin.


18 de octubre de 2019
WP-Staging Pro works incredibly well - and the support is exemplary. We staged a complex site update that involved switching membership tools (export/import), plugin updates, and content updates too. I actually planned two hours to do a final push of the site from staging to live (production) but it took about fifteen minutes! We had an issue during our process prior to staging and the developer helped us through a technical problem. Fast support, a great staging how-to video that shows how the process will go. This should be in every WP developer's toolbox, it's that useful.
18 de octubre de 2019
The plugin did what it's supposed to do. I didn't want to deactivate EVERY plugin on my site to find the one that wasn't playing nice with the others; I need most of them for my site to run smoothly. This plugin helped me find the one that was giving me trouble, without shutting everything down! I found what I was looking for and made the necessary correction. This plugin helped me immensely!
17 de octubre de 2019
Thoroughly enjoying the ability to work on my site without the worry! Thanks so much!
Leer todas las 1.235 reseñas

Colaboradores y desarrolladores

«WP Staging – DB & File Duplicator & Migration» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«WP Staging – DB & File Duplicator & Migration» ha sido traducido a 1 idioma local. Gracias a los traductores por sus contribuciones.

Traduce «WP Staging – DB & File Duplicator & Migration» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


  • New Support for WordPress 5.2.4
  • New: Allow wildcards for excluding files
  • New: Add hook «wpstg_clone_action_staging» to execute code on staging site after cloning
  • Tweak: Improved support for custom uploads folder if user customized UPLOADS constant or upload_path in DB
  • Fix: Better compatibility with Windows IIS server
  • Fix: External links are broken after cloning if ABSPATH is equal to /www/
  • Fix: use an alternative method for file_put_contents as it is not supported on all systems due to file permission issues
  • Fix: Redundant and duplicated update comments in wp-config.php in staging site


  • Fix: Do not show warning «Preparing Data Step3: Failed to update rewrite_rules in wpstg0_options»
  • Fix: Change error «Table wpstgtmp_options does not exist» to warning
  • New: Add arguments for hook wpstg_cloning_complete
  • New: Setup server environment variables per process and not globally (e.g. set_time_limit)
  • New: Add support for custom uploads folder if user customized UPLOADS constant or upload_path in DB


  • New: Improve styling of login form. Thanks to Andy Kennan (Screaming Frog)
  • New: Add ‘password lost’ button to login form
  • New: Change welcome page CTA
  • New: Add feedback option when plugin is disabled
  • Fix: PDO instances can not be serialized or unserialized
  • Fix: Can not update staging site db table if there are constraints in it


  • New: Compatible up to WordPress 5.2.2
  • New: Performance improvement for directory iterator using less server ressources
  • New: Add filter wpstg_folder_permission to set a custom folder permission like 0755, allows to overwrite FS_CHMOD_DIR if it has been defined.
  • Fix: Error conditions in class Data does not compare type strict (== vs. ==) resulting in interruption of clone process
  • Fix: Excluded folders under wp-content level are not take into account on microsoft IIS servers


  • New: Update for WP 5.2.1
  • New: Better corporate identity and more friendly UI colors for staging sites listings and button
  • New: Better warning notices before updating process is executed
  • New: Add tooltips for explaining navigation buttons
  • New: Check if UPLOAD constant is defined and use this value for uploads folder destination
  • New: Show notice if user tries to clone a staging website.
  • Fix: Staging sites listing entries appeared on the cloned website.
  • Fix: Do not search & replace through «__PHP_Incomplete_Class_Name» definitions
  • Fix: Prevent wordfence firewall rule interrupting the clone deletion method
  • Fix: Excluded wp staging directory from deleting process is ignored and will be deleted either way
  • Fix: Strip whitespaces in cloning site internal names


  • Fix: Remove admin notice that wp staging is not compatible with latest wp version


  • Fix: Fatal Error: Remove previous implemented action to not search & replace over incomplete classes. This lead to high memory consumption and error 500 in step 2 of the cloning
  • Fix: Cloning process interupts if there is not data to change in last step of cloning


  • Nuevo: Compatible hasta WordPress 5.2
  • New: Allow adding file .wp-staging to root of website to determine if it’s a staging or production website
  • New: Add extended data about a staging site in list overview of staging sites
  • New: Show unfinished or interrupted clones and allow deletion of them
  • Tweak: Move admin notices templates to views/notices
  • Fix: Rating notice appears again after using review later button
  • Fix: Can not find staging site when staging site has been created with old version of wp staging
  • Fix: Do not search & replace over incomplete classes in database to prevent warnings


  • Fix: Fatal error, undefined function wpstg_validate_data()


  • Fix: WordFence firewall rule ‘local file inclusion’ blocks wp staging initial starting cloning sequence
  • Fix: Values of form Extra directories to copy are ignored


  • Fix: Disable the WP-Spamshield Plugin on staging site because it prevents login to the staging site
  • Fix: Lower the memory consumption when the cloning scan process is started
  • New: Show PHP user in system info log


  • New: Tested up to WordPress 5.1.1


  • Fix: WP Staging > Tools > System Info does not open
  • New: Open system info log file directly via wp staging > tools


  • Fix: Do not exclude db.php if it is not located in the wp-content folder
  • Fix: Select All button for DB tables not working properly
  • New: Add Filter to exclude certain tables from search & replace operation
  • New: Show PHP user in system info
  • New: Check if there is already one process running before executing the cloning process
  • New: Support up to WordPress 5.1


  • New: Add new DB table selection manager
  • Fix: Better warning notices before updating a staging site
  • Fix: Stop delete process if staging site has been deleted manually before
  • Fix: Log file folder does not have correct permission 0755
  • Fix: Continue cloning if siteurl & home in wp_options could not be changed
  • Tweak: Better warning for the update method
  • Tweak: DB tables and file verification opened as default option
  • Tweak: Skip rows larger than 5MB for search & replace operations to keep memory consumption low
  • Tweak: clean up search & replace method
  • Tweak: Better FAQ

Complete changelog: https://wp-staging.com/wp-staging-changelog