Skip to content

Instantly share code, notes, and snippets.

View jamesaspence's full-sized avatar

James Spence jamesaspence

View GitHub Profile
@jamesaspence
jamesaspence / pg-create-backup.sh
Last active October 31, 2023 21:44
Upgrades our local postgres 10 -> 14. Provides a rollback script that will allow rolling back.
#!/usr/bin/env bash
set -euxo pipefail
echo -e "Let's get a backup created for your data, just in case!\n"
echo -e "Shutting down the app...\n"
# First, shut down the app if it's running.
docker compose -f docker-compose.yml -f docker-optional-app.yaml down
echo -e "Creating a backup of the docker volume.\n"