Odoo Help

Welcome!

This community 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.

1

Setting up automatic backups for OpenERP 7

By
Laurens
on 5/22/13, 1:18 PM 5,269 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.

3

Brett Lehrer

--Brett Lehrer--
1252
| 5 4 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. :)

Laurens
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

Trobz, 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?

VVolt
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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