软件 来源:大侠之运维 2024-08-14 07:06:20 阅读:647
PG Back Web是一个带有web界面的PostgreSQL备份工具,目前发布了最新的2.0版本,之前仅支持使用S3作为备份存储,新版本支持本地存储

PG Back Web 不仅仅是一个备份工具,它更多是关注到数据的安全与可用,而且带有web界面,可以更加轻松友好的完成数据备份。
该工具采用go语言完成
支持docker部署,可以如下操作,部分根据需要调整
services: pgbackweb: image: eduardolat/pgbackweb:latest ports: - "8085:8085" # Access the web interface at http://localhost:8085 volumes: - ./backups:/backups # If you only use S3 destinations, you don't need this volume environment: PBW_ENCRYPTION_KEY: "my_secret_key" PBW_POSTGRES_CONN_STRING: "postgresql://postgres:password@postgres:5432/pgbackweb?sslmode=disable" depends_on: postgres: condition: service_healthy postgres: image: postgres:16 environment: POSTGRES_USER: postgres POSTGRES_DB: pgbackweb POSTGRES_PASSWORD: password ports: - "5432:5432" volumes: - ./data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5