X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/e32107a7fe79ce34f3bdf860410a6d5455efdca7..414a39ee4b909dbd7c891ce7a3bff90b75db866c:/bin/weather-backup?ds=inline diff --git a/bin/weather-backup b/bin/weather-backup index fd219f7..7f8009b 100755 --- a/bin/weather-backup +++ b/bin/weather-backup @@ -6,10 +6,10 @@ LOGDB=`uci get weathermon.process.logdb` if [ ! -z "$BACKLOGDB" ]; then BACKLOG_BASE=$(basename "$BACKLOGDB") - sqlite3 "$BACKLOGDB" ".backup $BACKUP_DIR/$BACKLOG_BASE" + sqlite3 -readonly "$BACKLOGDB" ".backup $BACKUP_DIR/$BACKLOG_BASE" fi if [ ! -z "$LOGDB" ]; then LOG_BASE=$(basename "$LOGDB") - sqlite3 "$LOGDB" ".backup $BACKUP_DIR/$LOG_BASE" + sqlite3 -readonly "$LOGDB" ".backup $BACKUP_DIR/$LOG_BASE" fi