Skip to content

Instantly share code, notes, and snippets.

if [[ $# != 5 ]] ; then
print \
"usage: caffeinate zsh $0 TABLE START STOP FROM TO
TABLE statistics_1minute (without database)
START/STOP '2022-08-18 17:40:00' '2022-08-18 17:45:00'
FROM/TO 1.src.clickhouse.local 2.dst.clickhouse.local
repeat as appopriate
(destination node count must match source shard count)"
exit 2
fi