Add baroness backup

This commit is contained in:
Daniel A. Maierhofer
2018-07-29 00:51:15 +02:00
parent dcd7e8b9e5
commit 6a7b784879
4 changed files with 50 additions and 1 deletions

42
host_vars/baroness Normal file
View File

@@ -0,0 +1,42 @@
inventory_hostname: baroness.fet.htu.tuwien.ac.at
inventory_hostname_short: baroness
borgbackup_binary_version: "1.1.6"
borgbackup_binary_platform: "armv6"
borgbackup_binary_uri: "https://borg.bauerj.eu/borg-{{ borgbackup_binary_version }}-{{ borgbackup_binary_platform }}"
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_create_jobs:
- name: system
options: "--lock-wait 1800"
day: "*"
hour: "*" # default value = 1
minute: 0 # default value = 0
random_minute: 59 # default value : ignore randomization
directories:
- "/home/pi/baroness"
excludes: []
borgbackup_prune_enabled: yes
borgbackup_prune_jobs:
- name: system
prune_options: "--lock-wait 1800 --keep-daily=750 --keep-weekly=52 --keep-monthly=24 --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

@@ -16,5 +16,8 @@ all:
fet_qemu:
hosts:
maria-storage
fet_pi:
hosts:
baroness
vars:
ansible_python_interpreter=/usr/bin/python3

View File

@@ -1,6 +1,6 @@
---
borgbackup_install_from_repo: False
borgbackup_binary_version: "1.1.4"
borgbackup_binary_version: "1.1.6"
borgbackup_binary_platform: "borg-linux64"
borgbackup_binary_uri: "https://github.com/borgbackup/borg/releases/download/{{ borgbackup_binary_version }}/{{ borgbackup_binary_platform }}"
borgbackup_binary: "/usr/local/bin/borg"

View File

@@ -43,6 +43,10 @@
# - maria-storage
- borg_client
- hosts: baroness
roles:
- borg_client
#- hosts: ruby
# become: True
# roles: