]> Git — Sourcephile - julm/air-duino.git/blob - remote-collect.sh
add comment
[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 mkdir -p rrd/"$year"
10 ssh "$host" ${user:+-l "$user"} \
11 rrdtool dump \~user/work/tool/air/rrd/"$year"/"$month".rrd |
12 rrdtool restore -f - rrd/"$year"/"$month".rrd
13 make NO_INO=set view/"$year"/"$month"/${day:+$day/}png
14 make NO_INO=set view/"$year"/"$month"/${day:+$day/}html5