template brain_backup - add exclude from backup

This commit is contained in:
Ludovic Cartier 2024-12-24 14:47:45 +01:00
parent b8a682a6f7
commit 6b7264190d

View File

@ -90,6 +90,11 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \;
{% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %} {% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if backup_exclude is defined %}
{% for item in backup_exclude %}
--exclude {{ item }} \
{% endfor %}
{% endif %}
{% if backup_pgsql_enabled is sameas true %} {% if backup_pgsql_enabled is sameas true %}
postgresql.pxar:$backup_dir/$today/postgresql \ postgresql.pxar:$backup_dir/$today/postgresql \
{% endif %} {% endif %}