Odoo database migration

1, the backup database (backup database only, not the backup file)

2, packing datafile.

3, configure a new odoo.conf

4, the release datafile to a new location (the name of preparation for the name of the database recovery)

5, recovery in the / web / database / manager interface database, the name of the database must be restored so that the database does not currently exist. Select the copy.

6, delete the original database data regarding attachment DELETE FROM ir_attachment WHERE url LIKE '/ web / content /%';

7, restart odoo service, load it.

PS: Find legacy database information recorded attachment select id, res_model, res_name, db_datas, file_size from ir_attachment where url LIKE '/ web / content /%'; 

Published 27 original articles · won praise 1 · views 981

Guess you like

Origin blog.csdn.net/jason156/article/details/103536443