X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/529af1a8e82eff19d98f6f60a98fc6d5e3e8d95d..21260a74f42a65603317d1938fac675d5eef6635:/bin/weather-backup?ds=sidebyside 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