-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |