This commit is contained in:
erebion 2024-04-10 11:59:10 +02:00
commit 765b5f5557
3 changed files with 15 additions and 17 deletions

View file

@ -6,4 +6,4 @@ APT_Periodic_AutocleanInterval: "7"
APT_Periodic_Unattended_Upgrade: "1" APT_Periodic_Unattended_Upgrade: "1"
restic_repository_location: "sftp:restic_{{ inventory_hostname }}@proxmox.unhb.space:/storage/restic-backup/" restic_repository_location: "sftp:restic_{{ inventory_hostname }}@proxmox.unhb.space:/storage/restic-backup/"
restic_start_time: "*-*-* 3:00:00" restic_start_time: "*-*-* 1:00:00"

View file

@ -1,5 +1,4 @@
entryPoints: entryPoints:
web: web:
address: ":80" address: ":80"
@ -29,7 +28,7 @@ certificatesResolvers:
email: "{{ letsencrypt_email }}" email: "{{ letsencrypt_email }}"
storage: "/letsencrypt/acme.json" storage: "/letsencrypt/acme.json"
#caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" #caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
tlsChallenge: tlsChallenge: true
providers: providers:

View file

@ -17,17 +17,17 @@ fi
echo "Now dumping databases, this might take a while..." echo "Now dumping databases, this might take a while..."
set -x set -x
docker exec -t matrix_sql.server4 pg_dumpall -c -U user_synapse_unhb > /opt/db_dumps/db-dump-synapse_db.sql docker exec -t matrix_sql.server4 pg_dumpall -c -U user_synapse_unhb | bzip2 > /opt/db_dumps/db-dump-synapse_db.sql.bz2
docker exec -t authentik-postgresql-1 pg_dumpall -c -U authentik > /opt/db_dumps/db-dump-authentik_db.sql docker exec -t authentik-postgresql-1.server4 pg_dumpall -c -U authentik | bzip2 > /opt/db_dumps/db-dump-authentik_db.sql.bz2
docker exec -t hedgedoc_sql15.server4 pg_dumpall -c -U md > /opt/db_dumps/db-dump-hedgedoc_db.sql docker exec -t hedgedoc_sql15.server4 pg_dumpall -c -U md | bzip2 > /opt/db_dumps/db-dump-hedgedoc_db.sql.bz2
docker exec -t tandoor-tandoor_recipes_db-1 pg_dumpall -c -U djangouser > /opt/db_dumps/db-dump-tandoor_db.sql docker exec -t tandoor-tandoor_recipes_db-1 pg_dumpall -c -U djangouser | bzip2 > /opt/db_dumps/db-dump-tandoor_db.sql.bz2
docker exec -t wikijs-wikijs-db-1 pg_dumpall -c -U wikijs > /opt/db_dumps/db-dump-wikijs_db.sql docker exec -t wikijs-wikijs-db-1 pg_dumpall -c -U wikijs | bzip2 > /opt/db_dumps/db-dump-wikijs_db.sql.bz2
docker exec -t nextcloud_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_NEXTCLOUD" > /opt/db_dumps/db-dump-nextcloud_db.sql docker exec -t nextcloud_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_NEXTCLOUD" | bzip2 > /opt/db_dumps/db-dump-nextcloud_db.sql.bz2
docker exec -t etherpad_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_ETHERPAD" > /opt/db_dumps/db-dump-etherpad_db.sql docker exec -t etherpad_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_ETHERPAD" | bzip2 > /opt/db_dumps/db-dump-etherpad_db.sql.bz2
docker exec -t jverein_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_JVEREIN" > /opt/db_dumps/db-dump-jverein_db.sql docker exec -t jverein_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_JVEREIN" | bzip2 > /opt/db_dumps/db-dump-jverein_db.sql.bz2
docker exec -t url-shortener_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_URLSHORTENER" > /opt/db_dumps/db-dump-urlshortener_db.sql docker exec -t url-shortener_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_URLSHORTENER" | bzip2 > /opt/db_dumps/db-dump-urlshortener_db.sql.bz2
docker exec -t wiki_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_WIKI" > /opt/db_dumps/db-dump-wiki_db.sql docker exec -t wiki_sql.server4 sh -c "exec mariadb-dump --all-databases -uroot --password=$MARIADB_PASSWORD_WIKI" | bzip2 > /opt/db_dumps/db-dump-wiki_db.sql.bz2
docker exec -t wordpress_sql.server4 sh -c "exec mysqldump --all-databases -uroot --password=$MARIADB_PASSWORD_WORDPRESS" > /opt/db_dumps/db-dump-wordpress_db.sql docker exec -t wordpress_sql.server4 sh -c "exec mysqldump --all-databases -uroot --password=$MARIADB_PASSWORD_WORDPRESS" | bzip2 > /opt/db_dumps/db-dump-wordpress_db.sql.bz2
set +x set +x
restic backup --verbose \ restic backup --verbose \
@ -35,8 +35,7 @@ restic backup --verbose \
/home \ /home \
/opt \ /opt \
/root \ /root \
/srv \ /srv
/var/lib/docker/volumes/ \ # /var/lib/docker/volumes/ \
/var/www
echo "done! :)" echo "done! :)"