do not backup docker volumes (are part of mailcow backups
This commit is contained in:
@@ -25,7 +25,6 @@ $ hcloud server set-rdns mail --hostname mail.nbit.ch
|
|||||||
$ IPV6="$(hcloud server ip mail -6)"
|
$ IPV6="$(hcloud server ip mail -6)"
|
||||||
$ hcloud server set-rdns mail --ip $IPV6 --hostname mail.nbit.ch
|
$ hcloud server set-rdns mail --ip $IPV6 --hostname mail.nbit.ch
|
||||||
```
|
```
|
||||||
|
|
||||||
DNS Eintraege erstellen:
|
DNS Eintraege erstellen:
|
||||||
```bash
|
```bash
|
||||||
$ hcloud server ip mail
|
$ hcloud server ip mail
|
||||||
@@ -209,7 +208,7 @@ Restic Script:
|
|||||||
#
|
#
|
||||||
PATH=$PATH:/usr/local/bin
|
PATH=$PATH:/usr/local/bin
|
||||||
export RESTIC_PASSWORD="$(hostname --short)7355"
|
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
|
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
|
restic forget --quiet --repo /backup-restic/restic-repo-$(hostname --short) --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 20 --prune
|
||||||
|
|||||||
Reference in New Issue
Block a user