Geen omschrijving
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.

main.yml 759B

12345678910111213141516171819202122232425262728
  1. secret_root: '{{ inventory_dir | realpath }}'
  2. secret_name: 'secret'
  3. secret: '{{ secret_root + "/" + secret_name }}'
  4. backup_vpn_net: "10.8.0.0/24"
  5. backup_vpn_bridge: "10.8.0.2"
  6. backup_host: "192.168.0.10"
  7. backup_share: "/mnt/data/backups"
  8. backup_borg_passphrase: "{{ lookup('password', secret + '/' + 'backup_borg_passphrase length=20') }}"
  9. backup_daily: "7"
  10. backup_weekly: "4"
  11. backup_monthly: "6"
  12. backup_source: "/"
  13. backup_repo_dir: "/mnt/nas_backups"
  14. backup_repo_name: "borg-linux-{{ server_name }}"
  15. backup_destination: "{{ backup_repo_dir }}/{{ backup_repo_name }}"
  16. backup_excludes:
  17. - "/home/*/.cache/*"
  18. - "/var/cache/*"
  19. - "/var/tmp/*"
  20. - "/media/*"
  21. - "/mnt/*"
  22. - "/dev/*"
  23. - "/proc/*"
  24. - "/sys/*"
  25. - "/tmp/*"
  26. - "/run/*"
  27. - "/lost+found/*"