Help

0

Make a full backup of odoo on development server

Avatar
medmars

Hello everyone  please i want to know if there a method to make a full backup of odoo 9 on development server ubuntu v 15.04

thanks

2 注释
头像
丢弃
Avatar
medmars
-

i want to make a full backup including ( Python, QWeb, JavaScript et XML, ) 

Avatar
Ermin Trevisan
-

Are you looking for a full backup of the server or backups of the different tenants (databases including their filestores)?

2 答案
0
Avatar
Gregor Rosenauer
Best Answer

in case you are talking about the database, which is what should really matter (else do a normal system backup or use a dockerfile...), you have several choices:

  1. use the integrated database backup (under "manage databases" on the login screen)

  2. use the promising (but sadly not working for me) auto_backup module from https://www.odoo.com/apps/modules/9.0/auto_backup/

  3. use a custom script (ideally triggered from cron) that backs up the database, like:

    /usr/bin/pg_dump -U <dbuser> --host localhost --format custom --blobs <dbname> > $filename

    bzip2 $filename
    for this to work, you'll need a .pgpass file in the home directory of the user doing the backup (in case of cron, it should be in /root), with the following content:

    localhost:5432:<dbname>:<dbuser>:<dbpass>

2 注释
头像
丢弃
Avatar
Ray Carnes
-

Only (1) will backup the filestore (a set of files stored outside the database, including website and attachments) necessary for everything to work properly. The filestore can be found in the home folder of the user (or service) who is running the Odoo server at .local/share/odoo

Avatar
Ermin Trevisan
-

Ray: auto_backup does also backup the filestore.

0
Avatar
Amin
Best Answer

how to restore a backup stored in the local server?

头像
丢弃