You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
858 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. # Cron job
  5. - !record {model: ir.cron, id: ir_cron_backupscheduler0}:
  6. name: Backup scheduler
  7. user_id: base.user_root
  8. interval_number: 1
  9. interval_type: days
  10. numbercall: -1
  11. nextcall: !eval
  12. (datetime.now() + timedelta(days=1)).strftime("%Y-%m-%d 02:00:00")
  13. model: db.backup
  14. function: action_backup_all
  15. # New message subtypes
  16. - !record {model: mail.message.subtype, id: success}:
  17. name: Backup successful
  18. res_model: db.backup
  19. default: False
  20. description: Database backup succeeded.
  21. - !record {model: mail.message.subtype, id: failure}:
  22. name: Backup failed
  23. res_model: db.backup
  24. default: True
  25. description: Database backup failed.