Add borgbackup of maria-storage

This commit is contained in:
Daniel A. Maierhofer
2018-07-28 21:47:14 +02:00
parent 2c76ab42cb
commit dcd7e8b9e5
2 changed files with 47 additions and 0 deletions

42
host_vars/maria-storage Normal file
View File

@@ -0,0 +1,42 @@
inventory_hostname: maria-storage.fet.htu.tuwien.ac.at
inventory_hostname_short: maria-storage
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/mysql"
- "/srv/save"
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

@@ -38,6 +38,11 @@
roles: roles:
- borg_server - borg_server
- hosts: maria-storage
roles:
# - maria-storage
- borg_client
#- hosts: ruby #- hosts: ruby
# become: True # become: True
# roles: # roles: