Update backup and logging documentation for Proxmox and containers. Adjust retention policies for Yandex Object Storage and enhance log rotation settings across various containers. Include detailed instructions for VPS backup processes and configurations for AmneziaVPN.

This commit is contained in:
2026-02-26 20:14:30 +03:00
parent cf212cefc5
commit feaa31f702
36 changed files with 1272 additions and 41 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# Логический дамп БД Immich (PostgreSQL). Запускать на VM 200 (admin или root).
# Установить на VM: /opt/immich/scripts/backup-db.sh
# Использует .env из /opt/immich (DB_USERNAME, DB_DATABASE_NAME).
set -e
cd /opt/immich
[ -f .env ] || { echo "No .env in /opt/immich" >&2; exit 1; }
set -a
source .env
set +a
# В compose сервис БД называется "database", не "immich_postgres"
docker compose exec -T database pg_dump -U "${DB_USERNAME}" "${DB_DATABASE_NAME}"