Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 regels
990 B

  1. #jinja2: lstrip_blocks: "True", trim_blocks: "True"
  2. location:
  3. source_directories:
  4. - {{ matrix_backup_borg_source }}
  5. repositories:
  6. - {{ matrix_backup_borg_repository }}
  7. one_file_system: true
  8. exclude_patterns:
  9. {% for pattern in matrix_backup_borg_exclude %}
  10. - {{ pattern }}
  11. {% endfor %}
  12. storage:
  13. compression: {{ matrix_backup_borg_compression }}
  14. ssh_command: {{ matrix_backup_borg_ssh_command }}
  15. archive_name_format: '{{ matrix_backup_borg_name }}'
  16. encryption_passphrase: {{ matrix_backup_borg_passphrase }}
  17. retention:
  18. keep_hourly: {{ matrix_backup_borg_hourly }}
  19. keep_daily: {{ matrix_backup_borg_daily }}
  20. keep_weekly: {{ matrix_backup_borg_weekly }}
  21. keep_monthly: {{ matrix_backup_borg_monthly }}
  22. keep_yearly: {{ matrix_backup_borg_yearly }}
  23. prefix: '{{ matrix_backup_borg_prefix }}'
  24. consistency:
  25. checks:
  26. - repository
  27. - archives
  28. hooks:
  29. after_backup:
  30. - echo "Backup created."
  31. on_error:
  32. - echo "Error while creating a backup."