#!/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"`