When you download a backup from the Odoo Database Manager, large databases can fail with an incomplete file or a timeout. Nginx limits how much of a response it will buffer to disk and how long it waits for Odoo to finish building the backup. This guide shows how to raise those limits so large backups download completely.
Note: this guide assumes Odoo runs behind Nginx. If you have not set that up, see How to Setup Odoo with Nginx as a Reverse Proxy in Ubuntu.
Step 1: Connect to Your Server
Connect to your server over SSH as a user with sudo privileges.
Step 2: Edit the Nginx Site Configuration
Open the Nginx configuration file for your Odoo domain. Replace example.com with your domain:
sudo nano /etc/nginx/sites-enabled/example.com
In the location / block, raise the temporary file limit and the read timeout. Odoo has to compress the whole database and filestore before the download starts, so the timeout matters as much as the size:
server {
...
location / {
...
proxy_max_temp_file_size 4096M;
proxy_read_timeout 900;
}
}
Set proxy_max_temp_file_size larger than your expected backup size. Make sure the server has that much free disk space.
Step 3: Test and Reload Nginx
sudo nginx -t
sudo systemctl reload nginx
Step 4: Check Odoo's Own Time Limit
If Odoo runs with workers, it stops any request that runs longer than limit_time_real. Check your Odoo configuration file, often /etc/odoo.conf:
sudo grep limit_time_real /etc/odoo.conf
If building the backup takes longer than this value, raise it, for example limit_time_real = 1800, and restart Odoo.
Step 5: Download Your Backup
Open the Database Manager, click Backup next to your database, and choose the zip format to include the filestore:
https://example.com/web/database/manager
Very Large Databases
For databases of several gigabytes, a command-line backup with pg_dump plus a copy of the filestore folder is faster and more reliable than the browser. SolaDrive customers can also protect their whole server with Acronis backups. To upload large backups instead, see How to Increase the Database Upload Size Allowed for Odoo Front-End.


