]> Git — Sourcephile - julm/air-duino.git/blob - remote-collect.sh
add RTC support
[julm/air-duino.git] / remote-collect.sh
1 #!/bin/sh -eux
2
3 year=${year:-$(date +%Y)}
4 month=${month:-$(date +%m)}
5 day=${day-}
6 host=${host:-cubie}
7 user=${user:-root}
8
9 ssh "$host" ${user:+-l "$user"} \
10 rrdtool dump \~user/work/tool/air/rrd/"$year"/"$month".rrd |
11 rrdtool restore -f - rrd/"$year"/"$month".rrd
12 make NO_INO=set view/"$year"/"$month"/${day:+$day/}png
13 make NO_INO=set view/"$year"/"$month"/${day:+$day/}html5