aports/cron/snapshot-influxdb/daily

4 lines
173 B
Bash

#!/bin/sh
/sbin/btrfs subvolume delete /var/lib/influxdb/snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/influxdb /var/lib/influxdb/snapshots/`date +"%u"`