Skip to Content
Menu
This question has been flagged
10 Replies
8310 Views

I need some advice on how to configure Odoo 8.0 for automatic backup.

From what I’m reading online, it appears that this version of Odoo now needs both a pg_dump backup and a filestore backup (and the Manage Databases option in the log in dialog automatically puts both in a .dump file).

How can I automate this and schedule it to happen once or twice a day? The script examples I’m seeing online appear to only deal with the pg_dump part of the backup – not the filestore portion.

Another possibility I have noticed would be to implement this change http://anybox.fr/blog/postgresql-large-object-storage-for-odoo so that the large objects just get stored in the pg database and I can then just use the pg_dump scripts method without worrying about a separate filestore.

Avatar
Discard
Author

Thank you for your answer. Sorry i don't have enough karma yet to mark it as answered.....

If you are un Ubuntu, I can put all my script here for you. Just ask it. Have a good day.

If you are on Ubuntu, I can put all my script here for you. Just ask it. Have a good day.

Author

Please do, Pascal - i would really appreciate it. I'm surprise that Odoo doesn't have automatic backup builtin consider how important it is....

I will publish my scripts in an other post. Did you try http://24.226.196.31:8069/web/database/manager ??? You can backup there. But it is not automatic.

https://www.odoo.com/forum/help-1/question/how-to-script-database-backup-on-ubuntu-70165

Best Answer

You can use Barman (http://www.pgbarman.org/) to provide continuous backup with PITR capability.  For filestore you could use rsync.

I would not recommed putting binary objects in the database.  It makes backups much larger, recover to take longer, and negatively affect DB performance.

Avatar
Discard

Hi George, i am new to servers in general and how much more so to odoo. when you say filestore use rsync, how do i do that? where are the files located? where is the database located? I have a freenas on my network that i want to use to backup the databse and filestore!

Hi Benjamin, Check your configuration file (https://goo.gl/s2iBvS) to see if the 'data_dir' directive is set. If so, this will be the root of where your files are stored. Otherwise, on linux it will be in your home directory under '.local'. There is a directory for each database and within each will be a 'filestore' directory The attachments are stored there. For the database, you can run 'pg_config' or 'pg_conftool show all' to get a good picture of your PostgreSQL installation. Here are some links for you: Barman: http://www.pgbarman.org/ Duply (uses rsync): https://goo.gl/gO3VLi Filestore info: https://goo.gl/2ydDm4

Best Answer

thank you for your help on this.

can i please ask you for a favor, i now have my folder with the filestores in them.  what is the rsync code to rsync them to a local freenas on my network at 192.168.1.17/mnt/freenas/odoo.

also is there a way to use barman on freenas?  or whats the test way to backup postgres sql to freenas on my network?

also i need some custom work done in odoo, do you offer such services?  if yes can you please give me your email so we can chat more there.

  thank you again for everything.    

Avatar
Discard
Related Posts Replies Views Activity
9
Jul 24
87510
9
Dec 22
59128
1
Jul 22
3221
12
Jun 24
19300
0
Apr 22
50