Skip to content

Commit 57eff04

Browse files
author
joaosraposo
committed
Add server configuration guidelines for large backups in readme
1 parent 3d5de63 commit 57eff04

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

trunk/readme.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,35 @@ This feature helps you:
142142
- Maintain a history of all backup operations
143143
- Ensure your backups are completing successfully
144144

145+
== Server Configuration for Large Backups ==
146+
To ensure successful backup uploads for websites of all sizes, especially large sites, you need adjust your server’s PHP, Nginx, and Nextcloud configuration as follows:
147+
148+
**1. PHP configuration (`php.ini`):**
149+
Consider increasing limits related to file size and execution time.
150+
Here’s an example configuration that allowed large uploads to complete successfully:
151+
- memory_limit = 5G
152+
- post_max_size = 5G
153+
- upload_max_filesize = 5G
154+
- max_execution_time = 7200
155+
- max_input_time = 7200
156+
(Use values appropriate for your environment)
157+
158+
**2. Nginx configuration:**
159+
Nginx uses the client_max_body_size directive to control the maximum allowed size of an upload.
160+
For example, to support uploads of several gigabytes, you might include a line like this in your nginx.conf (inside the http, server, or location block):
161+
- client_max_body_size = 5G;
162+
(Adjust the size limit to match your PHP and Nextcloud settings.)
163+
164+
**3. Nextcloud configuration (config.php):**
165+
You may also want to review Nextcloud’s upload-related settings.
166+
Here’s an example:
167+
- 'uploadtimeout' => 7200, // maximum time (in seconds) allowed for uploads
168+
- 'max_chunk_size' => 10485760, // chunk size (in bytes); 10MB is a good balance
169+
(These are reference values — feel free to adjust them as needed.)
170+
171+
Note:
172+
These settings are essential for handling large backup files and preventing timeouts or upload failures.
173+
If you are on shared hosting, you may need to contact your hosting provider to increase these limits.
145174

146175
= Process Duration =
147176

0 commit comments

Comments
 (0)