template brain_backup - add exclude from backup
This commit is contained in:
parent
b8a682a6f7
commit
6b7264190d
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user