-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): mise à jour de la documentation, suppression de fichiers …
…inutiles
- Loading branch information
Showing
14 changed files
with
199 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Synchronisation de la préprod k8s depuis un dump de prod anonymisé | ||
|
||
Cette synchronisation ne synchronise que la base, pas les fichiers uploadés. | ||
|
||
## Récupération du dump azure | ||
|
||
Pour pouvoir accéder aux backup et les télécharger, suivre les indications de la documentation SRE : https://socialgouv.github.io/support/docs/faq#acc%C3%A8s-aux-serveurs-pg-de-dev | ||
|
||
Télécharger le dernier dump depuis les backups azure, puis le déplacer vers `./_scripts/db/dumps/domifa_prod.postgres.custom.gz`: | ||
|
||
**⚠️ Important** : bien respecter le nom du fichier pour le dump, et systèmatiquement vérifier qu'il n'est pas présent dans vos commits. | ||
|
||
## Anonymisation du dump | ||
|
||
Anonymiser le dump: | ||
|
||
```bash | ||
# installer le dump en local sur la base "domifa_dev" | ||
./_scripts/db/restore-database-docker.sh --db=dev --dump=dev | ||
# anonymiser la base de données "domifa_dev" | ||
sudo docker exec domifa-backend bash -c 'yarn db:dev:data-anonymize' | ||
# écraser le dump d'origine avec la version anonymisée | ||
./_scripts/db/make-dump-database-docker.sh --db=dev --dump=dev | ||
|
||
# vérifier | ||
ls -lah ./_scripts/db/dumps/domifa_prod.postgres.custom.gz | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.