Skip to content
Snippets Groups Projects
Verified Commit 5ec3d1a8 authored by Florian Pritz's avatar Florian Pritz
Browse files

borg-client: Create timestamp file on backup host after successful backup


This allows to easily check for backups with no update to the timestamp
on the backup host.

Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent 8d743b90
No related branches found
No related tags found
No related merge requests found
...@@ -9,3 +9,5 @@ borg create -v --stats -C lz4 -e /proc \ ...@@ -9,3 +9,5 @@ borg create -v --stats -C lz4 -e /proc \
-e /sys -e /dev -e /run -e /tmp -e /var/cache \ -e /sys -e /dev -e /run -e /tmp -e /var/cache \
{{ backup_host }}:{{ backup_dir }}::$(date -I) / {{ backup_host }}:{{ backup_dir }}::$(date -I) /
borg prune -v {{ backup_host }}:{{ backup_dir }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6 borg prune -v {{ backup_host }}:{{ backup_dir }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6
ssh {{backup_host}} touch '{{backup_dir}}/last-backup-timestamp'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment