added docker/dotfiles/fixed stuff

This commit is contained in:
opal
2023-06-26 22:21:44 -07:00
parent 2b7dd33129
commit c490c1ae80
8 changed files with 107 additions and 16 deletions

View File

@@ -0,0 +1 @@
0 3 * * * root PATH=$PATH:/usr/bin:/usr/local/bin /usr/local/bin/borgmatic --verbosity -1 --syslog-verbosity 1 -c /home/opal/projects/backup-config/config.yaml

View File

@@ -0,0 +1,21 @@
---
- name: Pull Backup Repository
git:
repo: "{{ backup_repo }}"
dest: "{{ backup_repo_dir }}"
update: no
- name: Ensure correct file/dir ownership
file:
path: "{{ backup_repo_dir }}"
recurse: True
owner: opal
group: opal
- name: Copy Borgmatic Cronjob
copy:
src: borgmatic-cron
dest: /etc/cron.d/borgmatic
mode: u+x
owner: root
group: root

View File

@@ -0,0 +1,4 @@
---
backup_repo: git@codeberg.org:opalvaults/backup.git
backup_repo_dir: /home/opal/projects/backup-config