feat(backup): M8.7 world backup bundles and verified restore (ADR-0074)
Online, snapshot-consistent bundles (pg_dump at an exported snapshot, immutable objects verified by digest, MANIFEST of versions/builds/heads, SHA256SUMS); a fail-closed restore that audits every region's full history on independent storage; an isolated rebuild through clones that serves under load; an operator-run in-cluster backup streamed off the cluster. backup-check.sh runs in every PostgreSQL build, with corruption, missing-object, tampered-manifest and non-empty-target refusals. Destination, encryption, schedule and WAL archiving remain on the backlog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,7 @@ WORKDIR /source
|
||||
COPY deploy/ deploy/
|
||||
COPY tools/ci/deploy-policy-check.py tools/ci/
|
||||
COPY tools/ops/ tools/ops/
|
||||
COPY tools/backup/ tools/backup/
|
||||
RUN python3 tools/ci/deploy-policy-check.py
|
||||
# M8.5: monitoring configuration and alert tests with the pinned images' own tools.
|
||||
COPY --from=quay.io/prometheus/prometheus@sha256:6976aa8a60fec930796ce5772b8d12da7a318a5daa8d40d69c5c7819a05eeed7 /bin/promtool /usr/local/bin/promtool
|
||||
@@ -109,9 +110,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends libssl3t64 zlib
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& groupadd --gid 10001 evo && useradd --uid 10001 --gid 10001 --no-create-home evo
|
||||
COPY --from=postgres-toolchain /source/.cache/postgres/install/bin/psql /opt/postgres/bin/psql
|
||||
# M8.7 backups (ADR-0074): the same pinned PostgreSQL build's dump tools.
|
||||
COPY --from=postgres-toolchain /source/.cache/postgres/install/bin/pg_dump /opt/postgres/bin/pg_dump
|
||||
COPY --from=postgres-toolchain /source/.cache/postgres/install/bin/pg_restore /opt/postgres/bin/pg_restore
|
||||
COPY --from=postgres-toolchain /source/.cache/postgres/install/lib/libpq.so* /opt/postgres/lib/
|
||||
COPY --from=postgres-toolchain /source/.cache/postgres/postgresql-18.6/COPYRIGHT /usr/share/doc/evo-postgres/COPYRIGHT
|
||||
COPY tools/migrate-postgres.sh /opt/evo/tools/migrate-postgres.sh
|
||||
COPY tools/backup/backup-world.sh /opt/evo/tools/backup-world.sh
|
||||
COPY migrations/ /opt/evo/migrations/
|
||||
ENV PATH="/opt/postgres/bin:${PATH}" LD_LIBRARY_PATH=/opt/postgres/lib
|
||||
USER 10001:10001
|
||||
|
||||
Reference in New Issue
Block a user