diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index 981de32..cfd3751 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -8,6 +8,7 @@ trap "rm -f $pid" SIGSEGV trap "rm -f $pid" SIGINT if [ -e $pid ]; then + echo "A nother version of this restic backup script is already running!" {% if item.mail_on_error is defined and item.mail_on_error == true %} mail -s "starting restic backup failed on {{ ansible_hostname }}" {{ item.mail_address }} <<< "Another restic backup process is already running. We canceled starting a new restic backup script running at {{ ansible_hostname }} at $(date -u '+%Y-%m-%d %H:%M:%S'). {%- if item.src is defined -%}