Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3810 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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

backup of database and files?

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

Hi,

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

Ảnh đại diện
Huỷ bỏ