# Move from HostGator

> Export your site from HostGator and move it to WP Waterfall with the free migration, then switch the domain.

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

This guide is for a WordPress site on HostGator shared hosting or a HostGator WordPress plan, managed from the HostGator portal and cPanel.

## What you need

- An admin login at HostGator and a WordPress admin login.
- cPanel (the **Hosting** tab has a cPanel button). HostGator's cPanel backups stop at 10 GB and 150,000 inodes on Shared, Cloud Sites, and Reseller plans. HostGator's page for newer WordPress plans gives no export steps, so check its current docs.
- 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 HostGator

**Route 1: cPanel partial backups.**

1. In cPanel, under **Files**, choose **Backup**.
2. Under **Partial Backups** choose **Home Directory**. A `.tar.gz` downloads, without MySQL.
3. Further down, under **Download a MySQL Database Backup**, click your database name. Or open **Databases**, **phpMyAdmin**, select the database, open **Export**, keep **Quick**, and choose **Go**.
4. Unpack the home backup, find the site's `wp-content`, and build one archive from it and the `.sql` file.

**Route 2: SSH and WP-CLI.** SSH is on Linux plans except Optimized WordPress. Shared plans use port 2222. In the portal's **Hosting** tab, **Server Information**, choose **Manage Keys**. Check HostGator's current docs on enabling it. In the site folder run:

```
wp db export --add-drop-table site.sql
tar -czf ~/site-export.tar.gz --exclude=wp-content/mu-plugins --exclude=wp-content/cache wp-content site.sql
rm site.sql
```

A full backup (**Download a Full Account Backup**) also works, and the request has a **cPanel backup** type for it. It holds the whole account, so a smaller export is safer to share.

## Prepare the archive

Remove the `softaculous_backups` folder from the archive.

## 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. Your DNS lives where the domain's nameservers point. For HostGator nameservers, check HostGator's current docs for the DNS screen.

## Troubleshooting

- Backup fails: the account may exceed 10 GB or 150,000 inodes. Ask HostGator support, or use Route 2.

## 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)
- Host documentation: [Full backup](https://www.hostgator.com/help/article/how-to-generatedownload-a-full-backup), [SSH](https://www.hostgator.com/help/article/how-do-i-get-and-use-ssh-access)
