Compare commits

...
7 Commits
Author SHA1 Message Date
Brad Koehn b66f2886bb Update .gitlab-ci.yml file 2021-02-28 18:00:13 +00:00
Brad Koehn ae5912f70f upgrade to pg13.1 2020-11-18 10:10:36 -06:00
Brad Koehn f648887066 merged 2020-10-12 11:53:57 -05:00
Brad Koehn 4a4d87ba5d added documentation 2020-10-12 10:04:15 -05:00
Brad Koehn 7fa04795a8 Update README.md 2020-09-26 17:51:52 +00:00
Brad Koehn 89f76bb78b pg 13 2020-09-26 07:40:15 -05:00
Brad Koehn 642632c60c postgres 12.4 2020-08-17 13:58:41 -05:00
4 changed files with 16 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ build:
}
}
EOF
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination koehn/postgres-wal-g:12.3-$CI_COMMIT_TAG --build-arg BASE=12.3 --build-arg WALG_RELEASE=$(echo $CI_COMMIT_TAG | awk -F '-' '{print $1}')
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination koehn/postgres-wal-g:13.2-$CI_COMMIT_TAG --build-arg BASE=13.2 --build-arg WALG_RELEASE=$(echo $CI_COMMIT_TAG | awk -F '-' '{print $1}')
only:
- tags
+1 -1
View File
@@ -44,5 +44,5 @@ If you start your recovered backup, be sure to turn `archive_mode = off` to avoi
pushing additional WAL files to S3!
## Postgres Versions
Currently I build for Postgres 9.6 and Postgres 12. Be advised that 9.6 is the
Currently I build for Postgres 13, but you can build for whatever version you'd like. Be advised that 9.6 is the
earliest version that WAL-G supports.
+2
View File
@@ -1,5 +1,7 @@
#!/bin/bash
# A simple script to push a backup of your database.
if [ -z ${PGDATA+x} ]; then
export PGDATA=/var/lib/postgresql/data/pgsql
fi
+12
View File
@@ -1,5 +1,17 @@
#!/bin/bash
# Recovery script:
# * Calls wal-g to recover the latest database
# * Configures postgres to enter recovery mode by:
# * 1. Setting signal
# * 2. Appending wal-g recovery commands onto postgresql.conf
# * 3. Configuring postgres to only allow connections from localhost, preventing concurrent updates
# * 4. Disabling archive mode so as not to corrupt S3 backups
# * Starts postgres
#
# When recovery is done, hit ^C and start database using `/docker-entrypoint.sh postgres` and you should be able to connect to the database and verify backups are OK.
# If you get an error message, DON'T PANIC! Just read the message and do what it tells you to do.
if [ $(id -u) == "0" ] ; then
echo "this command must be run as the postgres user."
exit 1