]> Git — Sourcephile - julm/air-duino.git/blob - remote-collect.sh
add SEE_ALSO
[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-$(date +%d)}
6 host=${host:-air-collect}
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"/html5