Aine 3 лет назад
Родитель
Сommit
077ddd45bf
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 34969C908CCA2804
3 измененных файлов: 25 добавлений и 9 удалений
  1. +1
    -1
      docs/configuring-playbook-backup-borg.md
  2. +21
    -0
      group_vars/matrix_servers
  3. +3
    -8
      roles/matrix-backup-borg/defaults/main.yml

+ 1
- 1
docs/configuring-playbook-backup-borg.md Просмотреть файл

@@ -2,7 +2,7 @@

The playbook can install and configure [borgbackup](https://www.borgbackup.org/) with [borgmatic](https://torsion.org/borgmatic/) for you.
BorgBackup is a deduplicating backup program with optional compression and encryption.
That means your daily incremental backups can be stored in a fraction of the space and is safe weather you store it at home or a cloud service.
That means your daily incremental backups can be stored in a fraction of the space and is safe wether you store it at home or on a cloud service.

The backup will run based on `matrix_backup_borg_schedule` var (systemd timer calendar), default: 4am every day



+ 21
- 0
group_vars/matrix_servers Просмотреть файл

@@ -1093,6 +1093,27 @@ matrix_bot_mjolnir_systemd_required_services_list: |
#
######################################################################

######################################################################
#
# matrix-backup-borg
#
######################################################################

matrix_backup_borg_enabled: false
matrix_backup_borg_location_source_directories:
- "{{ matrix_base_data_path }}"
matrix_backup_borg_location_exclude_patterns: |
{{
{
'synapse': ["{{ matrix_synapse_media_store_path }}/local_thumbnails", "{{ matrix_synapse_media_store_path }}/remote_thumbnail", "{{ matrix_synapse_media_store_path }}/url_cache", "{{ matrix_synapse_media_store_path }}/url_cache_thumbnails"],
}[matrix_homeserver_implementation]|to_json
}}

######################################################################
#
# /matrix-backup-borg
#
######################################################################

######################################################################
#


+ 3
- 8
roles/matrix-backup-borg/defaults/main.yml Просмотреть файл

@@ -1,5 +1,5 @@
---
matrix_backup_borg_enabled: false
matrix_backup_borg_enabled: true

matrix_backup_borg_container_image_self_build: false
matrix_backup_borg_docker_repo: "https://github.com/borgmatic-collective/docker-borgmatic"
@@ -26,18 +26,13 @@ matrix_backup_borg_systemd_wanted_services_list: []
matrix_backup_borg_schedule: "*-*-* 04:00:00"

# what directories should be added to backup
matrix_backup_borg_location_source_directories:
- "{{ matrix_base_data_path }}"
matrix_backup_borg_location_source_directories: []

# target repositories
matrix_backup_borg_location_repositories: []

# exclude following paths:
matrix_backup_borg_location_exclude_patterns:
- "{{ matrix_synapse_media_store_path }}/local_thumbnails"
- "{{ matrix_synapse_media_store_path }}/remote_thumbnail"
- "{{ matrix_synapse_media_store_path }}/url_cache"
- "{{ matrix_synapse_media_store_path }}/url_cache_thumbnails"
matrix_backup_borg_location_exclude_patterns: []

# borg encryption mode, only repokey-* is supported
matrix_backup_borg_encryption: repokey-blake2


Загрузка…
Отмена
Сохранить