Skip to content

Commit ad35c6e

Browse files
committed
Install borgbackup from source for S3 functionality
1 parent 9b30768 commit ad35c6e

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

ansible/roles/borg/tasks/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
---
2-
- name: Install Borg Backup
2+
- name: Install borg dependencies
33
package:
44
name:
5-
- borgbackup2
5+
- liblz4-dev
6+
- liblz4-1
7+
- libzstd-dev
8+
- libzstd1
9+
- libacl1-dev
10+
- libacl1
11+
- libxxhash0
612
state: present
713
tags:
814
- role::borg
@@ -24,11 +30,12 @@
2430
tags:
2531
- role::borg
2632

27-
- name: Install borgmatic into virtual environment
33+
- name: Install borg & dependencies to virtual environment
2834
pip:
2935
virtualenv: "{{ borg_virtualenv }}"
30-
name: borgmatic
31-
version: "{{ borg_version | default(omit) }}"
36+
name:
37+
- borgbackup[s3] @ git+https://github.com/borgbackup/borg.git@{{ borg_git_version }}
38+
- borgmatic=={{ borgmatic_version }}
3239
state: present
3340
tags:
3441
- role::borg

ansible/roles/borg/vars/main/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ borg_user: borg
33
borg_home: /var/lib/borg
44
borg_virtualenv: "{{ borg_home }}/borgmatic-venv"
55

6-
borg_version: "2.0.11"
6+
# Pinned to a specific commit for S3 compatibility.
7+
borg_git_version: "1373b30ba8e6b88f6264dc57f6a8da46d8b2e80f"
8+
borgmatic_version: "2.0.11"
79

810
# see https://wiki.archlinux.org/title/Systemd/Timers
911
# or for more details https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html

0 commit comments

Comments
 (0)