تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3813 أدوات العرض

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.

الصورة الرمزية
إهمال

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

backup of database and files?

أفضل إجابة

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.

الصورة الرمزية
إهمال

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.

أفضل إجابة

Hi,

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

الصورة الرمزية
إهمال