Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1791 Zobrazení

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
Zrušit

Hola estimado, ya se arregló tu problema?

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
26
čvc 21
62006
0
pro 16
5628
2
čvn 16
6630
2
čvc 25
312
5
bře 24
31575