do not backup docker volumes (are part of mailcow backups

This commit is contained in:
Joerg Lehmann 2022-06-24 16:56:41 +02:00
parent a845286b96
commit cc1df36e72
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ $ hcloud server set-rdns mail --hostname mail.nbit.ch
$ IPV6="$(hcloud server ip mail -6)"
$ hcloud server set-rdns mail --ip $IPV6 --hostname mail.nbit.ch
```
DNS Eintraege erstellen:
```bash
$ hcloud server ip mail
@ -209,7 +208,7 @@ Restic Script:
#
PATH=$PATH:/usr/local/bin
export RESTIC_PASSWORD="$(hostname --short)7355"
restic backup --quiet --repo /backup-restic/restic-repo-$(hostname --short) /etc /var /opt /var/lib/docker/volumes /usr/local/bin /backup --exclude=/var/log
restic backup --quiet --repo /backup-restic/restic-repo-$(hostname --short) /etc /var /opt /usr/local/bin /backup --exclude=/var/log
if [ $? -eq 0 ]; then
restic forget --quiet --repo /backup-restic/restic-repo-$(hostname --short) --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 20 --prune