Backup nextcloud docker volume

This commit is contained in:
Ivan R. 2024-11-25 17:00:49 +05:00
parent 0cb56365e6
commit b7cadf2b91
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -6,6 +6,9 @@ docker exec restic-1 restic -o s3.bucket-lookup=dns \
backup --stdin-filename /data/postgresql.sql --stdin-from-command \ backup --stdin-filename /data/postgresql.sql --stdin-from-command \
-- pg_dumpall -U postgres -h postgresql --no-password -- pg_dumpall -U postgres -h postgresql --no-password
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/immich docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/immich
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/nextcloud docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/nextcloud
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/nextcloud
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/peertube docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/peertube
docker exec restic-1 restic -o s3.bucket-lookup=dns forget --keep-daily 7 --keep-weekly 2 docker exec restic-1 restic -o s3.bucket-lookup=dns forget --keep-daily 7 --keep-weekly 2