Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1812 Ansichten

I have restored an Odoo database from a .dump file, but the filestore is missing. As a result, attachments and some file-dependent functionalities are not working correctly.

Could someone guide me on the proper steps to recreate the filestore from the .dump file? Specifically, I’d like to know:

  1. Can the filestore be regenerated from the database?
  2. If not, what are the best practices for restoring or handling the missing filestore in such scenarios?

Any help or documentation references would be greatly appreciated.

Thank you in advance!

Avatar
Verwerfen

Hola estimado, ya se arregló tu problema?

Beste Antwort

Unfortunately, the filestore cannot be regenerated from the .dump file alone, because the .dump only backup the database, and Odoo stores binary attachments (e.g., uploaded files, images) outside the database in the filestore directory located under: 

~/.local/share/Odoo/filestore/<dbname>/

so in the case you backup using the dump file it will not include the attachment file there, thefore you cannot get the attachment file when you restore it.

what you can do: 

before you restore, you should create a backup copy of your filestore directory in 

~/.local/share/Odoo/filestore/<dbname>/

then after you restore it the filestore directory will be replace with the empty filestore directory, you will then copy the filestore backup folder over the filestore folder and make sure it have proper user:group access 

in the future, you should consider to create backup with .zip instead of .dump or if you want to backup using dump database you will have to backup the filestore separately

regard, 

Tuan 

https://skyerp.net

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
26
Juli 21
62036
0
Dez. 16
5644
2
Juni 16
6653
2
Juli 25
362
5
März 24
31595