small memos stuff

This commit is contained in:
counterweight 2025-12-15 23:33:20 +01:00
parent 4cc72da4da
commit 859cd2d8b7
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 6 additions and 7 deletions

View file

@ -46,7 +46,7 @@
SSH_CMD="ssh -p {{ backup_port }}"
{% endif %}
rsync -az -e "$SSH_CMD" --delete {{ backup_user }}@{{ backup_host }}:{{ backup_data_path }}/ "$BACKUP_DIR/"
rsync -az -e "$SSH_CMD" --rsync-path="sudo rsync" --delete {{ backup_user }}@{{ backup_host }}:{{ backup_data_path }}/ "$BACKUP_DIR/"
# Rotate old backups (keep 14 days)
# Calculate cutoff date (14 days ago) and delete backups older than that