aports/cron/gitea/cron-daily

4 lines
164 B
Plaintext
Raw Normal View History

2020-12-27 13:04:43 +00:00
#!/bin/sh
2020-12-29 18:30:07 +00:00
/sbin/btrfs subvolume delete /var/lib/gitea/snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/gitea /var/lib/gitea/snapshots/`date +"%u"`