Skip to content

Commit

Permalink
Borgmatic config update (#619)
Browse files Browse the repository at this point in the history
* Latest borgmatic has deprecated some config options.

* Removed note about remote_path as it doesn't feature in config file.

* Matching changes for German documentation re: deprecated config option

* Matching changes for German documentation re: remote_path note
  • Loading branch information
aderrose authored Sep 5, 2023
1 parent 26ea6cc commit 628365c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 52 deletions.
46 changes: 20 additions & 26 deletions docs/third_party/borgmatic/third_party-borgmatic.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,26 @@ Als nächstes müssen wir die borgmatic-Konfiguration erstellen.
```shell
source mailcow.conf
cat <<EOF > data/conf/borgmatic/etc/config.yaml
location:
source_directories:
- /mnt/source
repositories:
- ssh://[email protected]:22/./mailcow
exclude_patterns:
- '/mnt/source/postfix/public/'
- '/mnt/source/postfix/private/'
- '/mnt/source/rspamd/rspamd.sock'
retention:
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: ""
hooks:
mysql_databases:
- name: ${DBNAME}
username: ${DBUSER}
password: ${DBPASS}
options: --default-character-set=utf8mb4
source_directories:
- /mnt/source
repositories:
- path: ssh://[email protected]:22/./mailcow
label: rsync
exclude_patterns:
- '/mnt/source/postfix/public/'
- '/mnt/source/postfix/private/'
- '/mnt/source/rspamd/rspamd.sock'
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
mysql_databases:
- name: ${DBNAME}
username: ${DBUSER}
password: ${DBPASS}
options: --default-character-set=utf8mb4
EOF
```

Expand All @@ -103,9 +100,6 @@ Schauen Sie in der [borgmatic Dokumentation](https://torsion.org/borgmatic/) nac
Konfigurationsoptionen. Wenn Sie ein lokales Dateisystem als Backup-Ziel verwenden, stellen Sie sicher, dass Sie es in den
Container einbinden. Der Container definiert zu diesem Zweck ein Volume namens `/mnt/borg-repository`.

!!! note
Wenn Sie rsync.net nicht verwenden, können Sie wahrscheinlich das Element `remote_path` aus Ihrer Konfiguration streichen.
### Erstellen Sie einen crontab

Erstellen Sie eine neue Textdatei in `data/conf/borgmatic/etc/crontab.txt` mit folgendem Inhalt:
Expand Down
46 changes: 20 additions & 26 deletions docs/third_party/borgmatic/third_party-borgmatic.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,26 @@ Next, we need to create the borgmatic configuration.
```shell
source mailcow.conf
cat <<EOF > data/conf/borgmatic/etc/config.yaml
location:
source_directories:
- /mnt/source
repositories:
- ssh://[email protected]:22/./mailcow
exclude_patterns:
- '/mnt/source/postfix/public/'
- '/mnt/source/postfix/private/'
- '/mnt/source/rspamd/rspamd.sock'
retention:
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: ""
hooks:
mysql_databases:
- name: ${DBNAME}
username: ${DBUSER}
password: ${DBPASS}
options: --default-character-set=utf8mb4
source_directories:
- /mnt/source
repositories:
- path: ssh://[email protected]:22/./mailcow
label: rsync
exclude_patterns:
- '/mnt/source/postfix/public/'
- '/mnt/source/postfix/private/'
- '/mnt/source/rspamd/rspamd.sock'
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
mysql_databases:
- name: ${DBNAME}
username: ${DBUSER}
password: ${DBPASS}
options: --default-character-set=utf8mb4
EOF
```

Expand All @@ -104,9 +101,6 @@ Check the [borgmatic documentation](https://torsion.org/borgmatic/) on how to us
configuration options. If you choose to use a local filesystem as a backup destination make sure to mount it into the
container. The container defines a volume called `/mnt/borg-repository` for this purpose.

!!! note
If you do not use rsync.net you can most likely drop the `remote_path` element from your config.

### Create a crontab

Create a new text file in `data/conf/borgmatic/etc/crontab.txt` with the following content:
Expand Down

0 comments on commit 628365c

Please sign in to comment.