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
- Make a backup of fdpub database!
- Add new Domain to the cluster: https://dashboard.wpvip.com/apps/9635/production/domains
- Go to: https://preprod.fdpub.de/wp-admin/network/sites.php
- Add new site and note site ID for step 6.
- Make a backup of the origin single network site and download it. Follow this instructions
- Replace the origin table prefix in the SQL file with the target prefix from step 4.
- Validate the SQL file:
vip import validate-sql /Users/example-user/file.sql- Only import if there are no errors!
- Import the backup to the fdpub network via CLI:
- vip @fdpub.production import sql schlager.funkedigital.de-db-backup.sql –search-replace=”https://schlager.funkedigital.de,https://preprod-schlager.fdpub.de“
- Update Network and purge cache.
Media
Beware of the limitations! Read more
- Create and download a Media Backup from the origin (single) site: Follow this instructions
- Unpack the media backup, remove not needed content (e.g. wpallimport folder) – also rename the site-sub-folder to the new site id.
- Pack the media backup again and bring it to a public server.
- 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"
