From 2a273c99cca1c69ea33ef0021f7f21b604fb4bb6 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Sun, 29 Jul 2018 01:15:36 +0200 Subject: [PATCH] Add buran backup --- host_vars/buran | 43 +++++++++++++++++++++++++++++++++++++++++++ hosts/production | 5 +++-- site.yml | 4 ++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 host_vars/buran diff --git a/host_vars/buran b/host_vars/buran new file mode 100644 index 0000000..a73777a --- /dev/null +++ b/host_vars/buran @@ -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 diff --git a/hosts/production b/hosts/production index 71a878f..29ea327 100644 --- a/hosts/production +++ b/hosts/production @@ -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 diff --git a/site.yml b/site.yml index c4907a5..6597cd3 100644 --- a/site.yml +++ b/site.yml @@ -47,6 +47,10 @@ roles: - borg_client +- hosts: buran + roles: + - borg_client + #- hosts: ruby # become: True # roles: