Add buran backup

This commit is contained in:
Daniel A. Maierhofer
2018-07-29 01:15:36 +02:00
parent 268d0adddb
commit 2a273c99cc
3 changed files with 50 additions and 2 deletions

43
host_vars/buran Normal file
View File

@@ -0,0 +1,43 @@
inventory_hostname: buran.fet.htu.tuwien.ac.at
inventory_hostname_short: buran
borgbackup_install_from_repo: False
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_create_jobs:
- name: system
options: "--lock-wait 7200"
day: "*"
hour: 0 # default value = 1
minute: 0 # default value = 0
random_hour: 5 # default value : ignore randomization
random_minute: 59 # default value : ignore randomization
directories:
- "/var/lib/cyrus"
- "/var/spool/cyrus/mail"
- "/var/spool/sieve"
excludes: []
borgbackup_prune_enabled: yes
borgbackup_prune_jobs:
- name: system
prune_options: "--lock-wait 7200 --keep-daily=7 --keep-weekly=4 --keep-monthly=12 --keep-yearly=-1"
day: "*"
hour: 12 # default value = 1
minute: 0 # default value = 0
random_hour: 5 # default value : ignore randomization
random_minute: 59 # default value : ignore randomization
borgbackup_check_enabled: yes
borgbackup_check_jobs:
- name: system
check_options: "--lock-wait 28800"
day: 1
hour: 12 # default value = 1
minute: 0 # default value = 0
random_hour: 5 # default value : ignore randomization
random_minute: 59 # default value : ignore randomization
random_day: 27 # default value : ignore randomization

View File

@@ -15,9 +15,10 @@ all:
sojus:
fet_qemu:
hosts:
maria-storage
maria-storage:
buran:
fet_pi:
hosts:
baroness
baroness:
vars:
ansible_python_interpreter=/usr/bin/python3

View File

@@ -47,6 +47,10 @@
roles:
- borg_client
- hosts: buran
roles:
- borg_client
#- hosts: ruby
# become: True
# roles: