Backups: dump the database uncompressed so restic can deduplicate it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with PostgresTools::dumpCommand(), which builds the pg_dump invocation, and its existing test, then add --compress=0 and a test asserting it. Next, check the Tools › Backups page for the bytes-added figures and the backups architecture doc for the note. Confirm teme:backup:restore and the weekly test restore still handle both compressed and uncompressed dumps. Done when the command requests no compression, the tests pass, and restores work for old and new snapshots.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The nightly backup asks pg_dump for its custom format with PostgreSQL's own compression (--format=custom, which compresses by default; PostgresTools::dumpCommand()), and restic stores that output. Compressed bytes don't deduplicate: a table with even one changed row compresses to different bytes throughout, so restic stores that table's data again in full every night. Only tables that didn't change at all are shared between nights. On a publication, the content table changes daily, so most of the database is stored again each night, and the uploads and storage grow by about the database's size per night instead of by what changed.
Media isn't affected: restic deduplicates and compresses the files themselves.
Expected:
pg_dumpwrites the custom format uncompressed (--compress=0), and restic deduplicates it and compresses it with zstd, as its repositories already do (format 2, the default forrestic init);- a test that the dump command asks for no compression;
- the figures Tools › Backups shows for a run (bytes added) reflect the smaller nightly additions; a note in the backups architecture doc saying why the dump is uncompressed;
teme:backup:restoreand the weekly test restore keep working with both kinds of dump, since older snapshots hold compressed ones.
🤖 Generated with Claude Code
- Lenguaje dominante
- PHP
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 h 40 min
- PR fusionados (30 d)
- 143
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temecms/teme
-
area/admin type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area/media type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area/admin type/bug when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
area/import type/documentation when/soon
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/admin area/import type/bug when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de temecms/teme
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Los mantenedores suelen responder en 2 días
-
P2 Team S Type: Infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/site-kit-wp#14271 ·
Los mantenedores suelen responder en 2 días
-
Display price Views field throws TypeError when the row has no productPosiblemente ocupada @albanycomputers la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
backdrop-contrib/ubercart#610 ·