#!/bin/sh
rm -rf redis-timeseries
git clone https://github.com/RedisTimeSeries/RedisTimeSeries redis-timeseries
(  cd redis-timeseries
   git submodule init
   git submodule update --recursive
)
tar cf - --exclude .git redis-timeseries | xz -9 >redis-timeseries-`date '+%Y%m%d'`.tar.xz
rm -rf redis-timeseries
