fix certificates, restic backup command
This commit is contained in:
parent
855741f2bb
commit
6a61d1d463
|
|
@ -107,7 +107,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) /home /etc /var /opt /var/lib/docker/volumes /usr/local/bin /backup --exclude=/var/log
|
restic backup --quiet --repo /backup-restic/restic-repo-$(hostname --short) /home /etc /var /opt /var/lib/docker/volumes /usr/local/bin /backup --exclude=/var/log --exclude=/var/lib/docker/overlay2
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ services:
|
||||||
- /home/joerg/nbit-website/document_root:/usr/share/nginx/html
|
- /home/joerg/nbit-website/document_root:/usr/share/nginx/html
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.nbitwebsite.rule=Host(`nbit.ch`,`www.nbit.ch`)"
|
- "traefik.http.routers.nbitwebsite.rule=Host(`nbit.ch`,`www.nbit.ch`,`linux-freelancer.ch`,`www.linux-freelancer.ch`)"
|
||||||
- "traefik.http.routers.nbitwebsite.entrypoints=websecure"
|
- "traefik.http.routers.nbitwebsite.entrypoints=websecure"
|
||||||
- "traefik.http.routers.nbitwebsite.tls.certresolver=myresolver"
|
- "traefik.http.routers.nbitwebsite.tls.certresolver=myresolver"
|
||||||
- "traefik.http.routers.nbitwebsite.tls.domains[0].main=nbit.ch"
|
- "traefik.http.routers.nbitwebsite.tls.domains[0].main=nbit.ch"
|
||||||
- "traefik.http.routers.nbitwebsite.tls.domains[0].sans=www.nbit.ch"
|
- "traefik.http.routers.nbitwebsite.tls.domains[0].sans=www.nbit.ch,linux-freelancer.ch,www.linux-freelancer.ch"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue