diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index a64c913..124fc0d 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -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 %} {% endfor %} {% endif %} +{% if backup_exclude is defined %} +{% for item in backup_exclude %} +--exclude {{ item }} \ +{% endfor %} +{% endif %} {% if backup_pgsql_enabled is sameas true %} postgresql.pxar:$backup_dir/$today/postgresql \ {% endif %}