update: new version borgmatic, remove section location,retention,storage
parent
b0e3952891
commit
f5cdd6b407
|
|
@ -1,17 +1,17 @@
|
||||||
{{ ansible_header | comment }}
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
location:
|
#location
|
||||||
source_directories:
|
source_directories:
|
||||||
{% for dir in borg.to_backup %}
|
{% for dir in borg.to_backup %}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
{% for remote in borg.remote %}
|
{% for remote in borg.remote %}
|
||||||
- {{ remote }}
|
- path {{ remote }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
exclude_patterns:
|
exclude_patterns:
|
||||||
- '*.pyc'
|
- '*.pyc'
|
||||||
- '\#*\#'
|
- '\#*\#'
|
||||||
- '*~'
|
- '*~'
|
||||||
|
|
@ -19,32 +19,32 @@ location:
|
||||||
- {{ pattern }}
|
- {{ pattern }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
exclude_caches: true
|
exclude_caches: true
|
||||||
|
|
||||||
exclude_if_present:
|
exclude_if_present:
|
||||||
- .nobackup
|
- .nobackup
|
||||||
|
|
||||||
borgmatic_source_directory: /tmp/borgmatic
|
user_runtime_directory: /tmp/borgmatic
|
||||||
|
|
||||||
storage:
|
#storage
|
||||||
relocated_repo_access_is_ok: true
|
relocated_repo_access_is_ok: true
|
||||||
encryption_passphrase: {{ borg.encryption_passphrase }}
|
encryption_passphrase: {{ borg.encryption_passphrase }}
|
||||||
ssh_command: ssh -i /etc/borgmatic/id_ed25519_borg {{ borg.ssh_options | default("") }}
|
ssh_command: ssh -i /etc/borgmatic/id_ed25519_borg {{ borg.ssh_options | default("") }}
|
||||||
borg_base_directory: /etc/borgmatic
|
borg_base_directory: /etc/borgmatic
|
||||||
borg_config_directory: /etc/borgmatic/config/
|
borg_config_directory: /etc/borgmatic/config/
|
||||||
borg_cache_directory: /etc/borgmatic/cache
|
borg_cache_directory: /etc/borgmatic/cache
|
||||||
borg_security_directory: /etc/borgmatic/config/security
|
borg_security_directory: /etc/borgmatic/config/security
|
||||||
borg_keys_directory: /etc/borgmatic/config/keys
|
borg_keys_directory: /etc/borgmatic/config/keys
|
||||||
compression: 'lz4'
|
compression: 'lz4'
|
||||||
umask: 0077
|
umask: 0077
|
||||||
lock_wait: 5
|
lock_wait: 5
|
||||||
archive_name_format: '{hostname}-{now}'
|
archive_name_format: '{hostname}-{now}'
|
||||||
{% set extra_init = borg.extra_init | default([]) %}
|
{% set extra_init = borg.extra_init | default([]) %}
|
||||||
{% set extra_prune = borg.extra_prune | default([]) %}
|
{% set extra_prune = borg.extra_prune | default([]) %}
|
||||||
{% set extra_create = borg.extra_create | default([]) %}
|
{% set extra_create = borg.extra_create | default([]) %}
|
||||||
{% set extra_check = borg.extra_check | default([]) %}
|
{% set extra_check = borg.extra_check | default([]) %}
|
||||||
{% if extra_init or extra_prune or extra_create or extra_check %}
|
{% if extra_init or extra_prune or extra_create or extra_check %}
|
||||||
extra_borg_options:
|
extra_borg_options:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if extra_init %}
|
{% if extra_init %}
|
||||||
# Extra command-line options to pass to "borg init".
|
# Extra command-line options to pass to "borg init".
|
||||||
|
|
@ -65,11 +65,10 @@ storage:
|
||||||
check: {% for cmd in extra_check %}--{{ cmd }} {% endfor %}
|
check: {% for cmd in extra_check %}--{{ cmd }} {% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
retention:
|
#retention
|
||||||
{% for retention in borg.retention %}
|
{% for retention in borg.retention %}
|
||||||
keep_{{ retention[0] }}: {{ retention[1] }}
|
keep_{{ retention[0] }}: {{ retention[1] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
prefix: '{hostname}-'
|
|
||||||
|
|
||||||
skip_actions:
|
skip_actions:
|
||||||
{% for action in borg.skip_actions %}
|
{% for action in borg.skip_actions %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue