Skip to content

Commit

Permalink
add simple change
Browse files Browse the repository at this point in the history
I forgot to mention this in my previous comments so I added a final output
statement to tell where the backup was placed.
  • Loading branch information
huss committed Dec 11, 2024
1 parent 8d9aace commit 545a53d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/backupScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# The OED Docker database container must be running for this script to work

# Input the pathname for the desired backup directory
Expand All @@ -26,4 +27,6 @@ date=`date +%Y-%m-%d_%H_%M_%S`
final_path="${db_dump_path}/dump_${date}.sql"

# Perform the backup using pg_dump
docker compose exec database pg_dump -U oed > "$final_path"
docker compose exec database pg_dump -U oed > "$final_path"

echo "OED database backup placed in ${final_path}"

0 comments on commit 545a53d

Please sign in to comment.