# Move from Lightsail

> Export a WordPress instance from Amazon Lightsail over SSH and move it to WP Waterfall with the free migration, then switch the domain.

Source: https://docs.wpwaterfall.com/migrate/from-amazon-lightsail

This guide is for a WordPress instance on Amazon Lightsail, usually the Bitnami WordPress blueprint. You make one archive over SSH with WP-CLI, hand it to WP Waterfall, review the site on staging, and then move the domain.

A Lightsail snapshot does not work as an export: Lightsail documents it only for creating new instances, so WP Waterfall cannot read it. Keep one as a safety copy. The WordPress **Tools**, **Export** XML has no plugins, themes, or uploads, so it is not enough either.

## What you need

- The Lightsail console or the SSH key, a WordPress admin login, and free disk space for a copy of `wp-content` and the database.
- 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 Lightsail

The instance header shows the vendor, Bitnami or Lightsail. Bitnami blueprints get no updates after May 19, 2026. The steps fit both; the paths differ.

1. Open the instance. On the **Connect** tab choose **Connect using SSH**, or connect as the user `bitnami` with your key.
2. Find WordPress. It is not in `public_html`:

```
sudo find / -name wp-config.php 2>/dev/null
```

On Bitnami it is usually `/opt/bitnami/wordpress`; adjust the paths below if yours differs. The path differs on the plain Lightsail blueprint, so use the `find` result.

3. Export and archive. `wp-config.php` is readable by root only, so use `sudo`:

```
cd /opt/bitnami/wordpress
sudo wp db export --add-drop-table --allow-root /tmp/site.sql
sudo tar -chzf /tmp/site.tar.gz -C /opt/bitnami/wordpress wp-content -C /tmp site.sql
sudo chown bitnami /tmp/site.tar.gz
sudo rm /tmp/site.sql
```

The `h` flag follows symbolic links, which the importer refuses. If `wp` is not found, run `mysqldump` from the MariaDB tools under `/opt/bitnami`.

4. Download `/tmp/site.tar.gz` with SFTP as the user `bitnami`. Use the default key from the **SSH keys** tab of the Lightsail **Account** page. Then delete the file from the instance.

## Prepare the archive

List `wp-content/mu-plugins`: the Bitnami and Lightsail docs describe none, and a must-use plugin WP Waterfall does not know sends the migration to a person for a look. Media kept in S3 or a Lightsail bucket is not in `wp-content/uploads`. It stays where it is.

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

- Server cron jobs. List them with `crontab -l` and `sudo crontab -l`.
- Redirects kept in the web server config under `/opt/bitnami`, or in `.htaccess`.
- Your Lightsail DNS zone, and snapshots.

## 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. If the domain uses a Lightsail DNS zone, edit the records there.

## Related

- [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site)
- [Multisite or 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)
- [Lightsail: WordPress by Bitnami](https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-wordpress-bitnami.html)
- [Lightsail: SFTP](https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-connecting-to-linux-unix-instance-using-sftp.html)
