Best practices for moving data with GravityMigrate
A migration goes smoothly when both sites are ready before you export, and when you check the new site before you switch the old one off. This checklist puts those steps in order, with a link to the article that covers each one in full.
Before you export #
- Update GravityMigrate to the latest release on both sites. It needs Gravity Forms 2.5 or later and PHP’s ZipArchive on the server. Without either one, GravityMigrate shows a notice in the dashboard and doesn’t start.
- Export forms that depend on each other in the same file: the forms joined in a View, a parent form and its child forms, and the forms GP Populate Anything (Gravity Wiz) reads. Importing and exporting configured Views, How does GravityMigrate handle nested forms? and Migrating forms that use Gravity Perks explain what happens to each.
- If the new site may not be able to reach the old one when you import, tick Include the files, so the download stands on its own on the Choose Data step. A site on your computer, behind a password, or about to be switched off is that case, as Where uploaded files go during a migration explains.
- Leave Gravity Forms Settings and GravityKit Settings unticked unless you mean to move this site’s configuration, because they hold license keys and API credentials. Give the file a password when it holds settings or personal data. Getting started with GravityMigrate walks through both options.
- Export when the old site has stopped collecting entries, or note the date. Entries submitted after the export aren’t in the file, and What changes when you import shows how to bring them over afterwards.
- When the export finishes, read its Done step. If it says that some files “were not written into this download and stayed on this site”, the new site downloads those from the old one during the import, so the old site has to stay online and reachable until then.
Before you import #
- On the new site, install and activate the plugins whose data you’re moving, such as GravityView, Gravity Flow and the add-ons your feeds belong to, and connect each add-on again. Activate the Signature Add-On before the import, so the signature images have somewhere to go. Imported entries don’t send notifications or run feeds, so nothing goes out again for them. Which feeds and add-ons migrate lists what each add-on needs.
- Back up the new site. The import’s Confirm step says “You cannot undo this once it starts.”
- Import each migration file once. Every import creates new forms, so importing the same file twice gives you two copies of every form and its entries.
- Use a file that GravityMigrate exported. A CSV of entries isn’t a migration file: to add entries from a CSV to a form, use GravityImport, as Getting started with GravityImport shows. To bring forms over from another form plugin on the same site, see Migrating forms from another form plugin.
- For a migration file larger than the new site’s upload limit, or one that keeps stopping, follow Migrating a large site.
After the import #
- Read the Done step. It lists the imported forms and how many of their uploaded files it counts as copied to the new site.
- Open each imported View and each page that embeds a form or View, and compare it with the old site. What changes when you import lists the settings that keep their old IDs.
- Before you switch the old site off, open a few imported entries with files and look at the address of each file link. A link that starts with the new site’s address points at a copy on the new site. One that starts with the old site’s address works only until that site goes down, and Where uploaded files go during a migration shows how to fix it.
Table Of Contents