FDPUB is our bright shiny brave world where all the websites from all the clusters are living in perfect harmony.

Goal: to have all origin sites as a clone for development in our FDPUP cluster.

To reach this all origin websites must be imported to FDPUB.

Add origin single multi site (production) from other cluster to FDPUB

Network / Domains

[add documentation how to add a new domain to the cluster on the VIP dashboard.]

We only need 1 stage per Website. As name convention we use:

[origin-website-domain].fdpub.de

In the rare case there is need for more stageing per website do this:

[origin-website-domain]-dev.fdpub.de

Database

  1. Make a backup of fdpub database!
  2. Add new Domain to the cluster: https://dashboard.wpvip.com/apps/9635/production/domains
  3. Go to: https://develop.fdpub.de/wp-admin/network/sites.php
  4. Add new site and note site ID for step 6.
  5. Make a backup of the origin single network site and download it. Follow this instructions
  6. Replace the origin table prefix in the SQL file with the target prefix from step 4.
  7. Validate the SQL file: 
    • vip import validate-sql /Users/example-user/file.sql
    • Only import if there are no errors!
  8. Import the backup to the fdpub network via CLI:
  9. Update Network and purge cache.

Media

Beware of the limitations! Read more

  1. Create and download a Media Backup from the origin (single) site: Follow this instructions
  2. Unpack the media backup, remove not needed content (e.g. wpallimport folder) – also rename the site-sub-folder to the new site id.
  3. Pack the media backup again and bring it to a public server.
  4. Upload the backup with VIP-CLI: https://docs.wpvip.com/vip-file-system/import-media-files/#h-import-media-files-with-vip-cli
    • vip @fdpub.production import media "https://www.zgtnet.de/fdpub/uploads.zip"