- scripts/migrate_matrix_to_postgres.sh : port complet dans un conteneur PG dédié, reprenable, vérifications préalables et post-port intégrées - scripts/verify_migration.sh : comptages SQLite/PG, FK, chaîne refresh_tokens, séquences, smoke test Synapse jetable - scripts/synapse_port_db_fixed.py : script officiel synapse_port_db (v1.162.0) patché — FK auto-référentes refresh_tokens, séquence un_partial_stated_room_stream_sequence, purge stream_positions à la reprise - scripts/switch_database.py : bascule idempotente du homeserver.yaml avec backup de rollback - examples/ : stack compose PostgreSQL (collation C), bloc database, backup à chaud pg_dump -Fc + rotation - docs/ : guide détaillé en 7 étapes (prérequis, snapshot, migration, vérifications, bascule, rollback, après-migration) Éprouvé en production : ~30 Go SQLite, 162 tables, port 2h50, zéro perte.
1.6 KiB
Licences
Le reste du projet (scripts shell, scripts python originaux, documentation)
MIT License — Copyright (c) 2026 Siphonight
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
scripts/synapse_port_db_fixed.py
Ce fichier est une copie patchée de synapse/_scripts/synapse_port_db.py du
projet Synapse (Matrix.org Foundation /
New Vector Ltd). Il conserve sa licence d'origine AGPL-3.0, indiquée dans
son en-tête. Les modifications locales y sont documentées dans le bandeau
« LOCAL PATCHES ».