I have to move a large Odoo(v13) database almost 1.2TB(DATABASE+FILESTORE), I can't use the UI for that(keeps loading for 10h+ without a result) and I dont want to only move postgresql database so I need file store too, What should I do? extract db and copy past the filestore folder? Thanks a lot.
1 Answer
You can move database and filestore separately. Move your Odoo PostgreSQL database with normal Postgres backup/restore cycle (not the Odoo UI backup/restore), this will copy the database to your new server. Then move your Odoo filestore to new location as filesystem level copy. This is enough to get the new environment running.
I assume you mean moving to a new server, not just moving to a new location on same filesystem on the same server.
-
Yes that's exactly what I mean, moving to a new server, Filestore isn't encrypted or something? I can just move it separately and it will work? Jan 14, 2022 at 17:06
-
2Filestore is not encrypted. The folders have a hash based folder naming to work well in large scale but it will work on the new environment as such.– VeikkoJan 14, 2022 at 17:15
-
Thanks a lot, im on it, I will try it and report back the results. Jan 14, 2022 at 17:46
/tmp
) folder of your OS. That means you'll need at least 1.2 TB free space for that operation. Doing the strategy in the first answer like using pg_dump/pg_restore and like copying or rsyncing the filestore is much better in this case.