do not backup docker volumes (are part of mailcow backups
This commit is contained in:
parent
a845286b96
commit
cc1df36e72
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue