WPCloudDeploy Documentation

Bulk Copy To Server

You can copy multiple sites from across multiple servers to a single server.  However, as you might expect, there are a number of important stipulations before you can initiate this operation.

  1. The source sites must be on servers with the same web server as the target server.  i.e.: you cannot copy NGINX sites to a server running OpenLiteSpeed and vice-versa.
  2. The target server must have no other activities occurring on it (e.g.: an admin must not be deleting sites or a customer site being created on the target server.)
  3. Recommended: The target server should be a clean server with no existing sites on it.  While not a strict requirement, it will make things easier if you run into errors.
  4. The Server Sync premium module must be installed.

Since this is an operation that is not normally something you do day-to-day we’ve made it a multi-step operation restricted to WPCD admins.  You will not be able to offer this feature to your customers on the front-end.

Step 1: Setup Target Servers

You setup your target or destination servers in SETTINGS.  You can set up more than one server if you’re rebalancing multiple servers in one sitting.  But, for most users, we expect that only a single server will be required.

  • Navigate to WPCloudDeploySETTINGS APP: WORDPRESS SETTINGSSERVERS
  • Scroll down to the BULK COPY TO SERVER section
  • Add your target server(s) in the TARGET SERVERS field
  • Scroll down and click the SAVE SETTINGS button.

Step 2: Select Sites from the Site List

Next, you select your sites from the site list – we have a lot of filters that allow you to filter down to a list of sites.  Again, for most users you’re likely copying all or a portion of sites from a single server over to a new one.  So you can filter the site list by server.

But, of course, you can apply any filter selection and select sites as needed – even across multiples servers using APP GROUPS.

Step 3: Initiate Operation

Once you’ve selected your sites, you can use the new options under BULK ACTIONS to copy the sites to your target server.

For each server you setup in step 1, you’ll see a new bulk action:

When you choose a COPY SITES TO SERVER action, it will setup a series of records in PENDING TASKS – one for each site.  The sites will then be copied one-by-one and marked completed.  You will be able to see the progress by refreshing the [pending tasks] screen.

Step 4: Clean up

Once you’ve verified that the sites work on the target server(s), you should delete the original sites.  This prevent duplicate domains from appearing in the site list.


Availability: Requires WPCloudDeploy 5.7 or later.


 

Share: