Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Successful in 10s
deploy/scripts/rotate-snapshots.sh creates daily-YYYY-MM-DD snapshot + prunes daily-* older than RETAIN_DAYS. Only touches its own daily-* namespace so hand-created snapshots (release anchors etc) never get reaped. 02:00 timer runs ahead of the 03:15 ref-sweep + 03:30 gc so tonight's fresh snapshot pins protect its blobs from eviction. DRY_RUN=1 for preview.
14 lines
364 B
SYSTEMD
14 lines
364 B
SYSTEMD
[Unit]
|
|
Description=Daily Clawstor snapshot rotation
|
|
Documentation=https://git.redclaw.dev/clawverse/clawstor
|
|
|
|
[Timer]
|
|
# 02:00 local — ahead of ref-sweep (03:15) + gc (03:30) so the fresh
|
|
# snapshot's pins protect its blobs from tonight's eviction.
|
|
OnCalendar=*-*-* 02:00:00
|
|
Persistent=true
|
|
Unit=clawstor-snapshot-rotate.service
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|