| @@ -2,7 +2,7 @@ | |||||
| The playbook can install and configure [borgbackup](https://www.borgbackup.org/) with [borgmatic](https://torsion.org/borgmatic/) for you. | 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. | 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 | The backup will run based on `matrix_backup_borg_schedule` var (systemd timer calendar), default: 4am every day | ||||
| @@ -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 | |||||
| # | |||||
| ###################################################################### | |||||
| ###################################################################### | ###################################################################### | ||||
| # | # | ||||
| @@ -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_container_image_self_build: false | ||||
| matrix_backup_borg_docker_repo: "https://github.com/borgmatic-collective/docker-borgmatic" | 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" | matrix_backup_borg_schedule: "*-*-* 04:00:00" | ||||
| # what directories should be added to backup | # 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 | # target repositories | ||||
| matrix_backup_borg_location_repositories: [] | matrix_backup_borg_location_repositories: [] | ||||
| # exclude following paths: | # 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 | # borg encryption mode, only repokey-* is supported | ||||
| matrix_backup_borg_encryption: repokey-blake2 | matrix_backup_borg_encryption: repokey-blake2 | ||||