#!/bin/sh -eux year=${year:-$(date +%Y)} month=${month:-$(date +%m)} day=${day-$(date +%d)} host=${host:-air-collect} user=${user:-root} ssh "$host" ${user:+-l "$user"} \ rrdtool dump \~user/work/tool/air/rrd/"$year"/"$month".rrd | rrdtool restore -f - rrd/"$year"/"$month".rrd make NO_INO=set view/"$year"/"$month"/html5