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:
parent
d6f99396c3
commit
524bfe4fd4
2 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ Description=Start lvm backup using duplicity.
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
||||||
TimeoutSec=2h
|
TimeoutSec=20h
|
||||||
|
|
||||||
# Creating snapshots
|
# Creating snapshots
|
||||||
{% for item in backup_vols %}
|
{% for item in backup_vols %}
|
||||||
|
|
|
@ -34,6 +34,8 @@ function backup () {(
|
||||||
--hostname {{ ansible_fqdn }} \
|
--hostname {{ ansible_fqdn }} \
|
||||||
{{ backup_duplicity_image }}:{{ backup_duplicity_image_version }} \
|
{{ backup_duplicity_image }}:{{ backup_duplicity_image_version }} \
|
||||||
--full-if-older-than 1M \
|
--full-if-older-than 1M \
|
||||||
|
--progress \
|
||||||
|
--progress-rate 60 \
|
||||||
--sign-key "{{ backup_gpg.sign_key | default(backup_gpg.id) }}" \
|
--sign-key "{{ backup_gpg.sign_key | default(backup_gpg.id) }}" \
|
||||||
{% for encryption_key in backup_gpg.encryption_keys | default([backup_gpg.id]) %}
|
{% for encryption_key in backup_gpg.encryption_keys | default([backup_gpg.id]) %}
|
||||||
--encrypt-key "{{ encryption_key }}" \
|
--encrypt-key "{{ encryption_key }}" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue