https://github.com/roquie/flynn-postgres-restore
https://github.com/roquie/flynn-postgres-restore
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/roquie/flynn-postgres-restore
- Owner: roquie
- Created: 2019-05-03T00:00:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T00:02:23.000Z (over 6 years ago)
- Last Synced: 2024-12-25T16:29:55.761Z (10 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Restore database of failed flynn cluster
----------------------------------------This a alternative method rather than present by authors.
But it request database credentials to connect.1) Follow instruction there about zfs volume:
https://gist.github.com/titanous/36754c1da91c632640a72) Download database folder (or compress to zip and then download) to local machine/other-server
3) Place postgres files to `flynn-db` folder```bash
$ tree -L 1 flynn-db/ | head -15
flynn-db/
├── PG_VERSION
├── base
├── global
├── pg-restore
├── pg_clog
├── pg_commit_ts
├── pg_dynshmem
├── pg_hba.conf
├── pg_ident.conf
├── pg_logical
├── pg_multixact
├── pg_notify
├── pg_replslot
├── pg_serial
```
4) Run `docker-compose up` (before needs to edit env variables)
5) Connect to database and use your credentials to dump sql.Database recovered. Fine!