diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index f086cc1..a20cf6e 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -97,7 +97,12 @@ else MODE_TAG="--tag cron" fi {% if item.stdin is defined and item.stdin == true %} - {{ item.stdin_cmd }} | {{ restic_install_path }}/restic backup --stdin $MODE_TAG {{ tags(item.tags) }} {{ stdin_filename(item.stdin_filename) }} $@ + {{ item.stdin_cmd }} | {{ restic_install_path }}/restic backup \ + --stdin $MODE_TAG \ + {{ tags(item.tags) }} \ + {{ stdin_filename(item.stdin_filename) }} \ + {% if item.exclude is defined %}{{ exclude(item.exclude) }}{% endif %} \ + $@ {% else %} {{ restic_install_path }}/restic backup $BACKUP_SOURCE $MODE_TAG \ {{ tags(item.tags) }} \