lvm_self_backup: Increase timeout and show progress information

This sets the timeout to 20h, because full backups usually take longer and also enabled progress logs, to see if the job is actually still doing something.
This commit is contained in:
saibotk 2021-10-06 00:00:30 +02:00
parent d6f99396c3
commit 524bfe4fd4
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,7 @@ Description=Start lvm backup using duplicity.
[Service]
Type=oneshot
TimeoutSec=2h
TimeoutSec=20h
# Creating snapshots
{% for item in backup_vols %}

View file

@ -34,6 +34,8 @@ function backup () {(
--hostname {{ ansible_fqdn }} \
{{ backup_duplicity_image }}:{{ backup_duplicity_image_version }} \
--full-if-older-than 1M \
--progress \
--progress-rate 60 \
--sign-key "{{ backup_gpg.sign_key | default(backup_gpg.id) }}" \
{% for encryption_key in backup_gpg.encryption_keys | default([backup_gpg.id]) %}
--encrypt-key "{{ encryption_key }}" \