-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
40 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
||
|
@@ -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: | ||
|