Influxdb backup tar gzip

greetings, im trying to compress a backup as it’s running by trying different versions of
influxd backup -database DB /dir/backup/date +%a-%b-%d | tar cvf - * | gzip -c > ./data.tar.gz
Any suggestions or better idea? Thanks,