infra/roles/monitoring-server/templates/influxdb_backup.sh.j2

9 lines
212 B
Django/Jinja

#!/bin/sh
# distributed from ansible
set -e
/usr/bin/find {{ influxdb_backup_path }} -type f -mmin +60 -exec rm {} \;
/usr/bin/influxd backup -portable -host {{ influxdb_rpc_bind }} {{ influxdb_backup_path }}