Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PG Snapshot restore instructions #1799

Merged
merged 5 commits into from
Aug 22, 2024
Merged

Conversation

swilson-fly
Copy link
Contributor

Summary of changes

There's some interop issues with restoring a snapshot for an older stolon PG into a new postgres-flex cluster. It's also not ideal to restore across different major versions of pg-flex. This updates the PG restore docs to add a section on how to find your image and specify it when restoring the pg cluster. It also updates the PG restore instructions in the single host failure doc.

Preview

Related Fly.io community and GitHub links

Resolves #1772

Notes

@swilson-fly swilson-fly merged commit 7d35f08 into main Aug 22, 2024
2 checks passed
@swilson-fly swilson-fly deleted the update-pg-restores branch August 22, 2024 20:13
Copy link
Contributor

@Roadmaster Roadmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one comment on stolon-based clusters.

## Restoring from a snapshot

To restore a Postgres application from a snapshot, simply specify the `--snapshot-id` argument when running the `create` command as shown below:
To restore a Postgres application from a snapshot, simply specify the `--snapshot-id` argument and the `--image-ref` argument when running the `create` command as shown below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One has to also specify --stolon if it's a Stolon-based cluster (14.x and lower, I think). For a few people who tried a restore, even with the correct image, without --stolon replication is not set up correctly. Running with --stolon fixes things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with the "Backup, Restores, & Snapshots" doc -- Snapshot Restores
2 participants