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