aports/cron/gitea/cron-daily

4 lines
140 B
Bash

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