aports/cron/snapshot-influxdb/daily

4 lines
173 B
Plaintext
Raw Normal View History

2020-12-27 13:04:43 +00:00
#!/bin/sh
2020-12-29 18:53:56 +00:00
/sbin/btrfs subvolume delete /var/lib/influxdb/snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/influxdb /var/lib/influxdb/snapshots/`date +"%u"`