aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-x[-rw-r--r--]scripts/restoredb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/restoredb.sh b/scripts/restoredb.sh
index baaa8a6b..a6b99bf0 100644..100755
--- a/scripts/restoredb.sh
+++ b/scripts/restoredb.sh
@@ -1,5 +1,6 @@
#!/bin/bash
DATABASES=( ET.pg serenitasdb.pg dawndb.pg investorsdb.pg )
-for db in ${DATABSES[@]}; do
- pg_restore -p 5432 -d postgres -c -C "/home/share/guillaume/$db"
+BACKUP_FOLDER="${BACKUP_FOLDER:-/home/share/guillaume}"
+for db in ${DATABASES[@]}; do
+ pg_restore -p 5432 -d postgres -c -C "${BACKUP_FOLDER}/${db}"
done