Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
11350 Lượt xem

I have 25 GB of Odoo 10.0 filestore on ubuntu server under /home/odoo/.local/share/Odoo/Filestore. My database size is 5GB.

Now i want to move entire filestore to new directory /srv/

However in .conf file i have added following data_dir=/srv/

When i do this all Odoo icons and attachments lost.

How i can move filestore from one location to another?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello all, 

my answer comes a little late but, to avoid breaking odoo after moving the filestore, you must specify the new path in the odoo configuration file in the data_dir parameter as following.

data_dir = /new/path/filestore

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,
maybe it will help you.
you can apply below command for MOVE Filestore Directory in a Server.
in your case :

==> sudo mv /home/odoo/.local/share/Odoo/Filestore /srv/ -R

after that you need to restart your Odoo Server Service from Ubuntu Server and check in Browser so you check your all attachments and Icons are display well in Odoo WEB Screen. 

Thanks.
 

Ảnh đại diện
Huỷ bỏ

WARNING: Yes, technically this reply WILL move the filestore to the correct folder. Unfortunately Odoo will not know where these files have disappeared to. Basically, you will have broken Odoo.

Hello all,

my answer comes a little late but, to avoid breaking odoo after moving the filestore, you must specify the new path in the odoo configuration file in the data_dir parameter as following.

data_dir = /new/path/filestore

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 10 24
29043
0
thg 7 18
2711
4
thg 4 25
6961
1
thg 8 20
10743
4
thg 8 20
20853