aports/cron/redis/cron-daily

4 lines
170 B
Bash

#!/bin/sh
/sbin/btrfs subvolume delete /databases/snapshots/redis/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /databases/redis /databases/snapshots/redis/`date +"%u"`