Skip to content

Commit

Permalink
if using files_from, BACKUP_SOURCES need to exist and be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl DeBisschop committed Jan 29, 2024
1 parent 911f51e commit 4f857f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions templates/restic_script_Linux.j2
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ export B2_ACCOUNT_ID={{ restic_repos[item.repo].b2_account_id }}
{% if restic_repos[item.repo].b2_account_key is defined %}
export B2_ACCOUNT_KEY={{ restic_repos[item.repo].b2_account_key }}
{% endif %}
{% if item.src is defined and item.src is string %}
BACKUP_SOURCE="{{ item.src }}"
{% endif %}
{% if item.src is defined and item.src.__class__.__name__ =='list' %}
BACKUP_SOURCE="{{ item.src| join(' ') }}"
{% endif %}
BACKUP_SOURCE="{% if item.src is defined %}{% if item.src is string %}{{ item.src }}{% elif item.src.__class__.__name__ =='list' %}{{ item.src| join(' ') }}{% endif %}{% endif %}"

{% if item.lvm is defined %}
# Set up functions for LVM.
Expand Down

0 comments on commit 4f857f3

Please sign in to comment.