aports/cron/redis/cron-daily

4 lines
164 B
Plaintext
Raw Normal View History

2020-12-27 13:04:43 +00:00
#!/bin/sh
2020-12-29 19:03:55 +00:00
/sbin/btrfs subvolume delete /var/lib/redis/snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/redis /var/lib/redis/snapshots/`date +"%u"`