Community mailing list archives

community@mail.odoo.com

Re: Old attachments not opening

by
Vauxoo S.A. de C.V., Moisés Augusto López Calderón
- 04/05/2016 10:35:56
Odoo use a local path to save your attachments.

If you make a postgresql backup and restore, you need copy the folders of attachments too.
The default path is /var/lib/odoo/.local/share/Odoo/filestore/{DATABASE_NAME}
(This path can be modified in you openerp_server.conf)

e.g.
old database: gretis_india
new database: gipl

You can run:
cp -r /var/lib/odoo/.local/share/Odoo/filestore/gretis_india/* /var/lib/odoo/.local/share/Odoo/filestore/gipl/.

If this path don't is your current filestore path you can find it with:
find / -type d -name filestore
or
find / -type d -name {DATABASE_NAME}


2016-04-05 6:15 GMT-05:00 mihir shah <mihir9898@gmail.com>:
Is there way to get back data 

On Sat, Apr 2, 2016 at 1:02 PM, Nhomar Hernandez <nhomar@vauxoo.com> wrote:

On Sat, Apr 2, 2016 at 1:27 AM, mihir shah <mihir9898@gmail.com> wrote:
NO i did not change the server ...i deleted old database and restore with new one.  So the data was there only thing which is not working is the attachment,

Did you changed the name of the database?

It means the deleted data base was DB1 and the new database was called DB2.?

Can you put here the output of this command:

'''
ls -aslh /var/lib/odoo/.local/share/Odoo/filestore/
'''

--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Regards 
Mihir Shah

*Please Don't print this email unless you really need to "Save Earth and Save Environment" 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Moisés López Calderón
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.com
twitter: @vauxoo
           @moylop260