diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/restoredb.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/restoredb.sh b/scripts/restoredb.sh index e13964cf..baaa8a6b 100644 --- a/scripts/restoredb.sh +++ b/scripts/restoredb.sh @@ -1,4 +1,5 @@ #!/bin/bash - -pg_restore -p 5432 -d postgres -c -C /home/share/guillaume/ET.pg -pg_restore -p 5432 -d postgres -c -C /home/share/guillaume/serenitasdb.pg +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" +done |
