From 545a53d20b5a53ee17dcd5be520fda9d8ea0adda Mon Sep 17 00:00:00 2001 From: Steven Huss-Lederman Date: Wed, 11 Dec 2024 08:03:08 -0600 Subject: [PATCH] add simple change I forgot to mention this in my previous comments so I added a final output statement to tell where the backup was placed. --- src/scripts/backupScript.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/backupScript.sh b/src/scripts/backupScript.sh index 91cacb41b..091dd4657 100755 --- a/src/scripts/backupScript.sh +++ b/src/scripts/backupScript.sh @@ -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 @@ -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" \ No newline at end of file +docker compose exec database pg_dump -U oed > "$final_path" + +echo "OED database backup placed in ${final_path}"