From e6155957e63b6de70dd46c1e7636b31a1af9e8b7 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Sun, 29 Jul 2018 13:06:24 +0200 Subject: [PATCH] Add nauka backup --- host_vars/nauka | 42 ++++++++++++++++++++++++++++++++++++++++++ hosts/production | 1 + site.yml | 4 ++++ 3 files changed, 47 insertions(+) create mode 100644 host_vars/nauka diff --git a/host_vars/nauka b/host_vars/nauka new file mode 100644 index 0000000..9e184cf --- /dev/null +++ b/host_vars/nauka @@ -0,0 +1,42 @@ +inventory_hostname: nauka.fet.htu.tuwien.ac.at +inventory_hostname_short: nauka + +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" + - "/var/www" + 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 29ea327..834bc7b 100644 --- a/hosts/production +++ b/hosts/production @@ -17,6 +17,7 @@ all: hosts: maria-storage: buran: + nauka: fet_pi: hosts: baroness: diff --git a/site.yml b/site.yml index 6597cd3..6ae274c 100644 --- a/site.yml +++ b/site.yml @@ -51,6 +51,10 @@ roles: - borg_client +- hosts: nauka + roles: + - borg_client + #- hosts: ruby # become: True # roles: