Skip to Content
Menú
This question has been flagged
2 Respostes
3809 Vistes

Could some show me the right way to do it, I heard about crontab option, but I don't know how to implement on my server. 

Thanks.

Avatar
Descartar

for crontab option see page: Settings/Technical/Scheduler/Scheduled Actions

backup of database and files?

Best Answer

Crontab is a Linux/UNIX tools to run a command on specific schedule(s).  You can search to find how it can be admininstered, this link is one of the example.

The menu Settings/Technical/Scheduler/Scheduled Actions that Temur had mentioned provides you a way to schedule something withint Odoo/OpenERP.  But AFAIK, it is not the right tool to choose if you want to do backup.

Now, you need to have something to be run by the crontab.  To back-up database, you need to run pg_dump from command line.  You can find manual for pg_dump in this link.  To back-up files (file system), you can use various tools, simplest would be a tar-compression combinantion like explained in this link.

Avatar
Descartar

I meant he already knows about crontab in Unix/Linux, I just wanted to notice that odoo/Openerp also has it's own cron, that makes it possible to schedule some actions. moreover cron of openerp is supposed to be cross-platform, if you'll schedule automated actions with it, it does not restricts you to be on Linux platform. Also you can use this cron to run some external commands with really small python code, including "pg_dump" or any tool of your choice for backup or whatever.

Best Answer

Hi,

Have tried this http://gegonotes.com/how-to-backup-openerp-databases-automatically/

Avatar
Descartar