Aller au contenu principal
How to Duplicate a WordPress Site: Complete Guide

How to Duplicate a WordPress Site: Complete Guide

Duplicating a WordPress site is a common operation that can seem intimidating if you've never done it before. Whether you want to create a testing environment, migrate to a new host, or simply back up your work, there are several methods to clone your site efficiently and safely.

In this complete guide, we'll explore the different reasons for duplicating a WordPress site, essential precautions to take, and most importantly, the best solutions available to accomplish this task.

Why Duplicate a WordPress Site?

Before diving into the "how," let's understand the "why." Here are the main reasons you might want to clone your site:

  • Create a staging environment: test new features, plugins, or themes without risking breaking your production site.
  • Migrate to a new host: change your web hosting while keeping all your content and settings.
  • Change domain name: transfer your site to a new web address.
  • Create a complete backup: have a backup copy in case of major problems on your site.
  • Duplicate a template site: use an existing site as a base for a new project.
  • Local development: work on your site locally before deploying changes.

Essential Precautions Before Duplicating

Before any duplication operation, some security measures are essential to avoid unpleasant surprises.

Back Up Your Existing Site

It may seem paradoxical to make a backup before duplicating, but it's essential. If something goes wrong during the process, you'll still have a backup copy. Regular maintenance of your site includes these preventive backups.

Check Your Storage Space

Duplication will create an archive of your complete site (files + database). Make sure that:

  • Your source server has enough space to create the archive
  • Your destination server can accommodate the duplicated site
  • Your internet connection is stable if you're downloading the archive locally

Update WordPress and Your Plugins

Before duplicating, update WordPress, your themes, and your plugins. This avoids transferring potential security vulnerabilities and ensures better compatibility.

Note Your Credentials

Keep handy:

  • FTP/SFTP access to both servers
  • Database credentials (source and destination)
  • Your WordPress admin panel access

The Best Plugins to Duplicate a WordPress Site

The simplest and safest method to duplicate a WordPress site is to use a dedicated plugin. Here are the most reliable solutions available.

1. Duplicator: The Market Reference

Duplicator is arguably the most popular WordPress migration plugin, with over one million active installations and a 4.9/5 rating on the official WordPress repository.

Main Features:

  • Creating packages containing all files and database
  • Migration to an empty server (without pre-installed WordPress)
  • Automatic URL search and replace
  • Support for sites of all sizes with Pro version

How to Use Duplicator:

  1. Install and activate the plugin on your source site
  2. Create a new package via Duplicator > Packages > Create New
  3. Run the scan to check your site's compatibility
  4. Build the package: the plugin generates two files (a PHP installer and a ZIP archive)
  5. Download both files to your computer
  6. Upload them to the destination server via FTP
  7. Access the installer (yournewsite.com/installer.php)
  8. Follow the wizard: enter the new database information
  9. Complete the installation and delete the installation files

Pricing: Free version available. Duplicator Pro starting at $49.50/year for advanced features (scheduling, cloud storage, multisite).

2. All-in-One WP Migration: Simplicity First

All-in-One WP Migration stands out for its extremely simple interface. With over 5 million active installations, it's one of the most used migration plugins, particularly appreciated by beginners.

Main Features:

  • One-click export of the entire site
  • Drag-and-drop import
  • Automatic URL search and replace
  • Compatible with most hosts

How to Use All-in-One WP Migration:

  1. Install the plugin on both sites (source and destination)
  2. On the source site, go to All-in-One WP Migration > Export
  3. Choose "File" as the export destination
  4. Download the generated archive (.wpress)
  5. On the destination site, go to All-in-One WP Migration > Import
  6. Drag and drop the .wpress file or select it
  7. Confirm the import and wait for the process to complete
  8. Log back in with the source site credentials

Important Limitation: The free version limits imports to 512 MB. For larger sites, you'll need to purchase the Unlimited Extension ($69).

3. UpdraftPlus: Backup and Migration

UpdraftPlus is primarily a backup plugin, but it includes very effective migration features. With over 3 million installations, it's the world's most popular backup plugin.

Main Features:

  • Complete backup (files + database)
  • Cloud storage (Dropbox, Google Drive, Amazon S3, etc.)
  • Migration with URL search/replace
  • Automatic backup scheduling

How to Use UpdraftPlus for Migration:

  1. Install UpdraftPlus on the source site
  2. Configure cloud storage (optional but recommended)
  3. Perform a complete backup via Settings > UpdraftPlus Backups
  4. Download the backup files or note the cloud access
  5. On the destination site, install UpdraftPlus
  6. Connect the same cloud storage or upload files manually
  7. Restore the backup via the "Existing Backups" tab
  8. Use the Migrator tool (premium version) for URL replacement

Pricing: Very complete free version. UpdraftPlus Premium starting at $70/year including the Migrator and advanced features.

4. Migrate Guru: Ideal for Large Sites

Migrate Guru is a free plugin developed by the BlogVault team, specifically designed to migrate large sites effortlessly.

Main Features:

  • Migration of sites up to 200 GB
  • Uses external servers (no overload on your hosting)
  • 80% faster migration than alternatives
  • Completely free

How to Use Migrate Guru:

  1. Install Migrate Guru on your source site
  2. Enter your email to create an account
  3. Select your destination host from the list
  4. Enter connection information (FTP/SFTP or cPanel)
  5. Start the migration: the plugin handles everything
  6. Receive an email once the migration is complete
  7. Check your site and update DNS if necessary

Limitations: Limited to 5 migrations per month per user. Does not support migrations to a local environment.

5. WPvivid: The Versatile Alternative

WPvivid Backup Plugin is an all-in-one solution for backing up, restoring, and migrating WordPress sites.

Main Features:

  • One-click backup and migration
  • Built-in staging (test environment creation)
  • Cloud storage (Google Drive, Dropbox, Amazon S3, etc.)
  • Large file filtering

How to Use WPvivid:

  1. Install WPvivid on the source site
  2. Go to WPvivid Backup in the WordPress menu
  3. Click "Backup Now" to create a complete backup
  4. Download the backup or send it to the cloud
  5. On the destination site, install WPvivid
  6. Upload the backup via the "Upload" tab
  7. Restore by clicking "Restore"
  8. Configure URL replacement if necessary

Pricing: Generous free version. WPvivid Pro starting at $49/year for automatic staging and advanced options.

Plugin Comparison Table

PluginPriceMax Size (free)Ease of UseIdeal For
DuplicatorFree / $49/yearUnlimited⭐⭐⭐Technical migrations
All-in-One WP MigrationFree / $69512 MB⭐⭐⭐⭐⭐Beginners
UpdraftPlusFree / $70/yearUnlimited⭐⭐⭐⭐Backup + migration
Migrate GuruFree200 GB⭐⭐⭐⭐Large sites
WPvividFree / $49/yearUnlimited⭐⭐⭐⭐Staging + migration

The Manual Method: FTP and Database

For advanced users or in special cases where plugins don't work, it's possible to duplicate a WordPress site manually. This method requires more time and technical skills but offers complete control over the process.

Step 1: Export Files via FTP

  1. Connect to your server via an FTP client (FileZilla, Cyberduck, etc.)
  2. Navigate to the WordPress folder (usually public_html or www)
  3. Download the entire folder to your computer
  4. Verify that all files have been downloaded (especially wp-config.php)

Step 2: Export the Database

  1. Connect to phpMyAdmin via your hosting panel
  2. Select the database of your WordPress site
  3. Click "Export" then choose "Quick" or "Custom"
  4. Select SQL format and download the file

Step 3: Create the Destination Database

  1. On the new hosting, create a new database
  2. Create a user and grant all privileges
  3. Note the information: database name, user, password, host

Step 4: Import the Database

  1. Open phpMyAdmin on the destination server
  2. Select the new database
  3. Click "Import" and upload the SQL file
  4. Start the import

Step 5: Modify wp-config.php

Before uploading files, modify wp-config.php:

define('DB_NAME', 'new_database');
define('DB_USER', 'new_user');
define('DB_PASSWORD', 'new_password');
define('DB_HOST', 'localhost'); // or the host provided by your hosting

Step 6: Upload the Files

  1. Connect via FTP to the destination server
  2. Upload all WordPress files to the correct directory
  3. Check permissions for folders (755) and files (644)

Step 7: Update URLs in the Database

This is the trickiest step. You need to replace the old URL with the new one throughout the database. Use a script like Search Replace DB or run these SQL queries:

UPDATE wp_options SET option_value = replace(option_value, 'https://old-site.com', 'https://new-site.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'https://old-site.com', 'https://new-site.com');
UPDATE wp_posts SET post_content = replace(post_content, 'https://old-site.com', 'https://new-site.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'https://old-site.com', 'https://new-site.com');

Warning: WordPress serialized data can be corrupted by a simple find/replace. That's why using a specialized tool or plugin is strongly recommended.

Our Recommendation

After testing these different methods, here are our tips based on your situation:

  • You're a beginner: go for All-in-One WP Migration for its disarming simplicity
  • Your site is over 500 MB: use Migrate Guru (free) or Duplicator
  • You also want regular backups: choose UpdraftPlus to kill two birds with one stone
  • You need a staging environment: WPvivid or Duplicator Pro are perfect

Whatever method you choose, never forget to make a prior backup and test your duplicated site before deleting the original. Duplicating a WordPress site no longer holds any secrets for you!

Ready to take back control of your WordPress site and content?

Whether you need a new site, a takeover of an existing one, or expert maintenance, we help your marketing and communications teams rely on a reliable, high-performing WordPress that's easy to manage.

Let's discuss your project