icinga2-container/usr/bin/backup-influxdb

7 lines
166 B
Bash
Executable File

#!/bin/sh
mv /backup/influxdb/tmp/meta.00 /backup/influxdb/ 2>/dev/null
set -e
influxd backup /backup/influxdb/tmp
mv /backup/influxdb/tmp/meta.00 /backup/influxdb/