Odoo Help


Setting up automatic backups for OpenERP 7

on 5/22/13, 1:18 PM 5,908 views

I am very interested in setting up an automatic backup, so I don't have to manually backup the database multiple times a day. After taking a look at this and this post, I'm not sure whether I can use such a solution on my platform. I am using Windows Server 2003 to host my OpenERP package, can I make use of crontab as explained by Arif in the second post?

I never did something like this before, so any information given on this topic would be very much appreciated. I love using and learning from OpenERP, but it's not easy to do so when nearly all information seems to be written specifically for Linux.


Brett Lehrer

--Brett Lehrer--

| 5 5 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 5/22/13, 2:30 PM

This is something you'd want to read through. http://wiki.postgresql.org/wiki/Automated_Backup_on_Windows

At any rate, I'd still suggest at least running a virtual machine with Ubuntu (or whatever other *nix distro you'd prefer otherwise) to host OpenERP on, rather than directly on Windows. The performance gain even in that scenario is worth looking into, and the support is much better. OpenERP is written on and for Linux, just ported to Windows.

Thank you, Brett. This information is exactly what I was looking for!

I am aware hosting the server on a linux machine will boost the performance and loading times. I'll look into a guide to facilitate such a transition a little later, right now I'm cautious (read: afraid) of losing any data of our production database or creating too much down-time during the execution. I guess I'm still a newbie compared to some posters here, but I'm learning a lot each day.

Either way I greatly appreciate you taking the time to supply me this information. Thanks again, Brett. :)

on 5/22/13, 3:33 PM

The nifty thing about OpenERP's data management, take a backup of your database on your Windows box, then restore that backup to your Linux box. You can leave your windows box running until your 100% satisfied with your linux box, then just repeat the procedure when your ready to go live.

Mike Lindsay
on 5/22/13, 6:49 PM

Hi, for a full backup, you should backup: - Database - Source code - Attached files: this is true in the case you decided to store documents outside of the database

Komit Consulting, CÔNG TY TNHH KOMIT, Jean-Charles Drubay
on 6/9/13, 11:32 PM

@Jean I thought openerp saves everything in database ?

Gopal Patel
on 9/3/13, 6:28 AM

You can choose to store binaries/files outside of the database. The database record would still be there, but the binary field would be left empty.

Brett Lehrer
on 9/3/13, 3:37 PM

Thanks Brett, thats what I was looking for. For me I have no experience on Linux and trouble is I have plenty of other software which runs only on windows and that need a backup too.

Nadeem Ahmed
on 9/18/13, 9:29 PM

Dear Brett, I too am running OpenERP in Windows Server 2003. However, I was not able to follow the steps to create a backup. I ran into all sorts of issues including error messages that indicated me not being able to communicate to DB Template1. Hence, I tried to use pg_dumpall.exe from the command line. This also caused issues as I don't know what would be all the parameters. Shouldn't I try to backup as the superuser? If so what is the user name? Could you please help?

on 3/4/14, 7:26 PM

If you've installed a module manually, by copying it to an addons folder, then be careful to copy that module before attempting to restore your database or else...

Gilles Lehoux
on 3/30/14, 12:05 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/22/13, 1:18 PM
Seen: 5908 times
Last updated: 3/16/15, 8:10 AM