Increase backup cron time limit to 1 hour

- Default 120s timeout was too short for large SFTP uploads
- Set time_limit to 3600s (1 hour) to prevent incomplete backups
- Fixes timeout during SFTP upload causing server reload
This commit is contained in:
Matthias Lotz 2026-01-13 17:51:10 +01:00
parent 00df958985
commit 23b9867eec
2 changed files with 4 additions and 1 deletions

View File

@ -12,5 +12,6 @@
<field name="model_id" ref="model_db_backup" />
<field name="state">code</field>
<field name="code">model.action_backup_all()</field>
<field name="time_limit">3600</field>
</record>
</odoo>

View File

@ -1,3 +1,5 @@
Before installing this module, you need to execute:
pip3 install pysftp==0.2.9
pip3 install \
paramiko \
cryptography