Add doc for automated cold-standby backups

Dieser Commit ist enthalten in:
MaxXor 2022-01-05 10:51:50 +01:00 committet von GitHub
Ursprung 31878afb59
Commit 2cbdd16d78
Es konnte kein GPG-SchlĂĽssel zu dieser Signatur gefunden werden
GPG-SchlĂĽssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -69,3 +69,30 @@ bash /opt/mailcow-dockerized/create_cold_standby.sh
It's the same command.
## Automated backups with cron
First make sure that the `cron` service is enabled and running:
```
systemctl enable cron.service && systemctl start cron.service
```
To automate the backups to the cold-standby server you can use a cron job. To edit the cron jobs for the root user run:
```
crontab -e
```
Add the following lines to synchronize the cold standby server daily at 03:00. In this example errors of the last execution are logged into a file.
```
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 3 * * * bash /opt/mailcow-dockerized/create_cold_standby.sh 2> /var/log/mailcow-coldstandby-sync.log
```
If saved correctly, the cron job should be shown by typing:
```
crontab -l
```