# Move from Pantheon

> Download the code, database, and files from Pantheon, join them into one archive, and move the site to WP Waterfall with the free migration.

Source: https://docs.wpwaterfall.com/migrate/from-pantheon

To move a site from Pantheon, download three backups, put them in one zip, give WP Waterfall a link to it, review the site on staging, then switch the domain. Pantheon keeps code in Git and the database and files apart from it, which is why there are three parts.

## What you need

- The site in the Pantheon Dashboard. Terminus 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 your site from Pantheon

Each Pantheon environment has its own backups. Use Live, normally.

1. In the Site Dashboard, choose **Backups**, then **Create New Backup**.
2. When it finishes, choose **Backup Log**.
3. On the newest backup, choose the down arrow next to **Code**, **Database**, and **Files**.

You get a code `.tar.gz`, a database `.sql.gz`, and a files `.tar.gz`. The links expire, so download them promptly. With Terminus:

```
terminus backup:create SITE.ENV --element=all
terminus backup:get SITE.ENV --element=code --to=code.tar.gz
terminus backup:get SITE.ENV --element=db --to=db.sql.gz
terminus backup:get SITE.ENV --element=files --to=files.tar.gz
```

## Prepare the archive

Put the three downloads (the code `.tar.gz`, the database `.sql.gz`, and the files `.tar.gz`) in one `.zip` without unpacking or renaming them. WP Waterfall opens all three and puts the files archive in `wp-content/uploads`. It leaves out `pantheon.yml`, `pantheon-mu-plugin`, `pantheon-advanced-page-cache`, and Native PHP Sessions on its own. Note the PHP version in `pantheon.yml`, and pick it when you create the site.

## 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:

- `pantheon.yml`. Write a `wpwaterfall.yml` from the [reference](https://docs.wpwaterfall.com/code/wpwaterfall-yml) for build steps and deploy hooks. The files share a purpose, not a format.
- Other environments such as Dev and Test. Choose **Create environment** in the environment switcher to make one.

## 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.

## Troubleshooting

- A link returns an error: it expired. Get a new one from **Backup Log**.
- Uploads are missing: the files archive was not in the zip, or was renamed.

## Related

- [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site)
- [Move it by hand](https://docs.wpwaterfall.com/migrate/from-generic-wordpress)
- [See how WP Waterfall compares](https://wpwaterfall.com/compare/pantheon)
- Pantheon: [Access backups](https://docs.pantheon.io/guides/backups/access-backups), [Create backups](https://docs.pantheon.io/guides/backups/create-backups), [backup:get](https://docs.pantheon.io/terminus/commands/backup-get)
