updated scripts to include new programs

This commit is contained in:
Vuong Hoang
2024-06-14 16:41:42 -07:00
parent 4c4737a6d1
commit 0e6284bbb6
4 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
version: 2
locations:
db:
from: /srv/backups/somefile
to: esh-local
options:
forget:
keep-last: 5
keep-daily: 7
keep-weekly: 4
keep-monthly: 12
keep-yearly: 7
backends:
esh-local:
type: local
path: /mnt/backup/restic/repo/esh
key: 'Reputable-Evidence-Feed5-Undergo'

View File

@@ -0,0 +1,22 @@
---
- name: create backup folder
file:
path: "/srv/backups/autorestic/"
state: directory
- name: copy configuration
copy:
src: .autorestic.yml
dest: "/srv/backups/autorestic/.autorestic.yml"
- name: Get autorestic installer
get_url:
url: https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh
dest: /tmp/autorestic_install.sh
mode: '0755'
- name: Install autorestic
shell:
cmd: /tmp/autorestic_install.sh
executable: /bin/sh
become: yes