# Move from WordPress VIP

> Export code, database, and media from WordPress VIP, join them into one archive, and move the site to WP Waterfall with the free migration.

Source: https://docs.wpwaterfall.com/migrate/from-wordpress-vip

To move a site from WordPress VIP, export the code, database, and media, join them into one archive, give WP Waterfall a link to it, review the site on staging, then switch the domain. VIP keeps code in a GitHub repository and the database and media on the platform, which is why there are three parts. Git history is not imported.

## What you need

- The VIP Dashboard, the GitHub repository, and Git. [VIP-CLI](https://docs.wpvip.com/vip-cli/) is optional.
- A free site license, and a backup file in a format that [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site#what-do-i-need) lists.

Export production, because a non-production media backup leaves out media only production holds.

## Export your site from WordPress VIP

1. Code: run `git clone` on the repository.
2. Database: in the VIP Dashboard choose **Database**, **Database Backups**, pick a date, **Configure Download**, **Entire database**, then **Download**. Or run `vip @your-app.production export sql --generate-backup`. The file is a `.sql.gz`.
3. Media: choose **Media**, **Media Backups**, **Generate Backup**, then **Download** under **Available Backups**. You get one or more `.zip` files. VIP keeps them 7 days, and the button expires after 15 minutes.

A Multisite network lets you pick one network site or all. See [Multisite and custom prefix](https://docs.wpwaterfall.com/migrating-a-multisite-or-custom-prefix-site).

## Prepare the archive

VIP's repository has no WordPress core and no VIP platform mu-plugins.

1. In a `build` folder, make `wp-content` and copy the repository's `themes`, `plugins`, and `languages` into it. If `composer.json` installs plugins, run Composer first.
2. Unzip every media archive into `wp-content/uploads`, so the year folders sit directly under `uploads`. Put the `.sql.gz` in `build`.
3. Copy each plugin from `client-mu-plugins` into `wp-content/plugins`, and activate it on staging after the import. WP Waterfall leaves out the whole `mu-plugins` folder.
4. Zip with `zip -r site.zip wp-content site.sql.gz`, then run `unzip -l site.zip`.

Port these VIP items by hand:

- `vip-config/vip-config.php` holds settings that normally live in `wp-config.php`. Recreate real constants in the **Environment variables** card on **Info**.
- VIP sets `VIP_GO_APP_ENVIRONMENT`, `VIP_GO_APP_BRANCH`, and `VIP_GO_APP_ID`. Use `WPWATERFALL_ENV` instead (see [Environment type variables](https://docs.wpwaterfall.com/environment-variables)).
- Functions from VIP's mu-plugins, such as `vip_get_env_var()` and `Environment::get_var()`, fail without them. Search your code and change them, for example to `getenv()`.
- Copy anything you need from the `images` and `private` folders into `wp-content`.

## What does not move?

Besides [the usual list](https://docs.wpwaterfall.com/migrate-a-site#what-moves-and-what-do-i-set-up-again), these stay behind:

- Other VIP environments and Git history.
- Enterprise Search. It keeps its index at VIP.

## Request the migration and switch the domain

Share the file as a public link, then follow [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site) to request the migration. That article also covers what moves, what you set up again, how to switch the domain, and how to roll back. The site arrives in Git mode with its code saved in one commit. See [How Git deploys work](https://docs.wpwaterfall.com/code/git-workflow). Edit DNS records where your nameservers point. VIP removes the GitHub repository when it retires an application, so keep your clone.

## Troubleshooting

- The download button vanished: it expires after 15 minutes. Open it again.
- Images are missing: check the year folders under `wp-content/uploads`. If only some sizes are missing, run `wp media regenerate --yes` over SSH.
- A white screen or fatal error: code that calls a VIP function. Read `error.log` under **Logs**.

## Related

- [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site)
- [Migrate a Multisite network or a site with a custom prefix](https://docs.wpwaterfall.com/migrating-a-multisite-or-custom-prefix-site)
- [Move it by hand](https://docs.wpwaterfall.com/migrate/from-generic-wordpress)
- WordPress VIP: [Media backups](https://docs.wpvip.com/vip-file-system/media-backups/), [Database backup](https://docs.wpvip.com/databases/backups/download-a-full-database-backup/), [vip export sql](https://docs.wpvip.com/vip-cli/commands/export/sql/), [Retire an application](https://docs.wpvip.com/vip-support/retire-a-site/)
