#!/bin/bash # Backup /mnt/misc/alvis and /mnt/misc/liza to /mnt/backups/users/ # Runs every 3 days via root crontab. Backup-freshness monitored via .age items. set -euo pipefail DEST=/mnt/backups/users mkdir -p "$DEST/alvis" "$DEST/liza" rsync -a --delete /mnt/misc/alvis/ "$DEST/alvis/" rsync -a --delete /mnt/misc/liza/ "$DEST/liza/" echo "$(date): Backup complete." # Backup-freshness monitoring is now done via .age items (calculated fields showing # age of the backup). The .ts (timestamp) trappers were unreliable (history.push not # landing); removed in kb#189 in favor of .age overdue triggers.