rm -rf clickhouse
git clone --depth 1 --recursive --branch stable https://github.com/yandex/ClickHouse.git clickhouse
tar -c -f- --exclude .git clickhouse | xz -9 >clickhouse-`date '+%Y%m%d'`.tar.xz
rm -rf clickhouse
