Odoo's shutil.move renames when the destination is absent and NESTS when it exists, so a leftover filestore/<db>/ sends a whole backup into filestore/<db>/filestore/, where Odoo never looks. That happened once here and the clone copied it into all seven databases of the chain -- 1168 files, 133 MB each, and nothing said a word. The check runs after a real restore only. A clone copies its source as it stands, faults included: checking the mirror would say the same thing twice, and in the wrong place. It warns and names the fix rather than aborting -- the database is restored and usable, it is the layout that is wrong. --- FR --- Le shutil.move d'Odoo renomme quand la destination est absente et IMBRIQUE quand elle existe : un filestore/<base>/ resté là envoie toute une sauvegarde dans filestore/<base>/filestore/, où Odoo ne regarde jamais. C'est arrivé une fois ici et le clone l'a recopié dans les sept bases de la chaîne -- 1168 fichiers, 133 Mo chacune, sans un mot. Le contrôle ne suit qu'une vraie restauration. Un clone recopie sa source telle quelle, défauts compris : contrôler le miroir dirait deux fois la même chose, au mauvais endroit. Il avertit et nomme la correction plutôt que d'interrompre -- la base est restaurée et utilisable, c'est la disposition qui cloche. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .. | ||
| migrate | ||
| compare_backup.py | ||
| compare_database_application.py | ||
| db_drop_all.py | ||
| db_restore.py | ||
| delete_production.sh | ||
| download_remote.py | ||
| download_remote.sh | ||
| fix_mariadb_sql_example_1.py | ||
| get_module_list_from_database.py | ||
| get_repo_from_backup.py | ||
| get_repo_from_module.py | ||
| image_db.py | ||
| list_remote.py | ||
| mariadb_sql_example_1.sql | ||
| migrate_prod_to_test.sh | ||
| README.base.md | ||
| README.fr.md | ||
| README.md | ||
| restore_mariadb_sql_example_1.sh | ||
Database
This section is for code generator database migrator.
This configuration is for development environnement.
You need to install script ./script/install/install_dev_extra_ubuntu.sh.
Restore database
Run script to restore database:
./script/database/restore_mariadb_sql_example_1.sh