Skip to content

Commit

Permalink
restore script
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Jul 26, 2018
1 parent 7ea2b18 commit 411da85
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions platform/restore-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#
# Routine backup for all data of the platform.
#
# Just van den Broecke - 2018
#

BACKUP_DIR=/var/smartem/backup

echo "START restore PG databases on `date`"

SCHEMAS="smartem_rt smartem_raw smartem_refined smartem_calibrated sos52n1 v1"
for SCHEMA in ${SCHEMAS}
do
BACKUP_FILE=${BACKUP_DIR}/gis-smartem_${SCHEMA}.dmp
./restore-db.sh ${SCHEMA}
done

echo "END restore PG databases op `date`"

BACKUP_FILE="${BACKUP_DIR}/influxdb_smartemission_data.tar.gz"
./../services/influxdb/restore.sh ${BACKUP_FILE}

0 comments on commit 411da85

Please sign in to comment.