Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1798 Visninger

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
Kassér

Hola estimado, ya se arregló tu problema?

Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
26
jul. 21
62013
0
dec. 16
5632
2
jun. 16
6637
2
jul. 25
319
5
mar. 24
31582