small memos stuff
This commit is contained in:
parent
4cc72da4da
commit
859cd2d8b7
2 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue