Restic 流式 PostgreSQL 备份无需中间文件
你可以使用 restic --stdin 备份 PostgreSQL 数据库而无需创建中间文件:
pgdump_to_restic.sh
pg_dump -d my_database | restic --verbose backup --stdin --stdin-filename="mydatabase-pgdump.sql"有关用于备份 Gitlab 实例的实际示例,请参见Restic backup script for Gitlab Docker with Omnibus
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow