3 BACKUP_DIR=`uci get weathermon.process.backup_dir`
4 BACKLOGDB=`uci get weathermon.process.backlogdb`
5 LOGDB=`uci get weathermon.process.logdb`
7 if [ ! -z "$BACKLOGDB" ]; then
8 BACKLOG_BASE=$(basename "$BACKLOGDB")
9 sqlite3 "$BACKLOGDB" ".backup $BACKUP_DIR/$BACKLOG_BASE"
12 if [ ! -z "$LOGDB" ]; then
13 LOG_BASE=$(basename "$LOGDB")
14 sqlite3 "$LOGDB" ".backup $BACKUP_DIR/$LOG_BASE"