Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions runs/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ LOG_FILE="$OPENWB_BASE_DIR/data/log/restore.log"
echo "Step 5.1: restore mosquitto db"
if [[ -f "${WORKING_DIR}/mosquitto/mosquitto.db" ]]; then
sudo mv -v -f "${WORKING_DIR}/mosquitto/mosquitto.db" "$MOSQUITTO_DB_DIR/mosquitto.db"
sudo chown mosquitto:mosquitto "$MOSQUITTO_DB_DIR/mosquitto.db"
else
echo "Backup does not contain mosquitto.db. Skipping restore."
fi
if [[ -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" ]]; then
sudo mv -v -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db"
sudo chown mosquitto:mosquitto "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db"
else
echo "Backup does not contain local mosquitto.db. Skipping restore."
fi
Expand Down