You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/details/storage-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Percona Backup for MongoDB (PBM) saves backup data to a designated directory on
18
18
19
19
The oplog entries ensure backup consistency, and the end time of the oplog slice(s) is the data-consistent point in time of a backup snapshot.
20
20
21
-
Using the [`pbm list`](../reference/pbm-commands.md#pbm-list) or [`pbm status`](../reference/pbm-commands.md#pbm-status) commands, you can scan the backup directory to find existing backups, even if never used PBM on your computer before.
21
+
Using the [`pbm list`](../reference/pbm-commands.md#pbm-list) or [`pbm status`](../reference/pbm-commands.md#pbm-status) commands, you can scan the backup directory to find existing backups, even if you never used PBM on your computer before.
As your database grows, so do your backups. Eventually, a backup file may become so large that it exceeds the maximum object size limit of your cloud or local storage. When this happens, Percona Backup for MongoDB (PBM) can't upload the file, which can disrupt your backup strategy.
6
+
7
+
The following table provides default size limits for the supported backup storages:
8
+
9
+
| Storage | Default size limit|
10
+
| :--- | :--- |
11
+
|**AWS S3**| 4.9 TB |
12
+
|**GCS**| 4.9 TB |
13
+
|**Azure Blob Storage**| 190 TB |
14
+
|**Filesystem storage**| 4.9 TB |
15
+
16
+
To ensure that PBM successfully uploads backups, you can configure the maximum size for backup files for the storage you use. Define the file size in GB for the `maxObjSizeGB` configuration parameter.
17
+
18
+
This is the configuration example for the AWS S3 storage:
19
+
20
+
```yaml
21
+
storage:
22
+
type: s3
23
+
s3:
24
+
region: us-west-2
25
+
bucket: pbm-test-bucket
26
+
prefix: data/pbm/backup
27
+
credentials:
28
+
access-key-id: <your-access-key-id-here>
29
+
secret-access-key: <your-secret-key-here>
30
+
maxObjSizeGB: 100
31
+
```
32
+
33
+
## How it works
34
+
35
+
When a backup file exceeds the configured size limit, PBM does the following:
36
+
37
+
* Splits the file into pieces, each of which doesn't exceed the defined size limit. PBM respects your compression settings, so compressed backups stay compressed after the split
38
+
* Names each piece by adding the `pbmpart{number}` token to the filename. This lets PBM identify and manage all the pieces of a single backup.
39
+
* Uploads the pieces to the storage
40
+
41
+
When reading data for an operation like a restore, PBM automatically reverses this process: it retrieves all the pieces from storage, merges them back into a single file, and proceeds with the command. This makes the entire process transparent to your application.
42
+
43
+
With this ability to set the maximum file size, you can future-proof your backup strategy and gain peace of mind knowing your data is always safe and recoverable.
Copy file name to clipboardExpand all lines: docs/reference/configuration-options.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ storage:
38
38
numMaxRetries: 3
39
39
minRetryDelay: 30ms
40
40
maxRetryDelay: 5m
41
+
maxObjSizeGB: 5018
41
42
```
42
43
43
44
### storage.s3.provider
@@ -246,6 +247,14 @@ The minimum time to wait before the next retry, specified as a *time.Duration*.
246
247
247
248
The maximum time to wait before the next retry, specified as a *time.Duration*. Units like ms, s, etc., are supported. Defaults to nanoseconds if no unit is provided.
248
249
250
+
### storage.s3.maxObjSizeGB
251
+
252
+
*Type*: int <br>
253
+
*Required*: NO <br>
254
+
*Default*: 5018
255
+
256
+
The maximum file size to be stored on the backup storage. If the file to upload exceeds this limit, PBM splits it in pieces, each of which falls within the limit. Read more about [Managing large backup files](../features/split-merge-backup.md).
257
+
249
258
## GCS type storage options
250
259
251
260
```yaml
@@ -260,6 +269,7 @@ storage:
260
269
privateKey: <your-private-key-here>
261
270
hmacAccessKey: <your-HMAC-key-here>
262
271
hmacSecret: <your-HMAC-secret-here>
272
+
maxObjSizeGB: 5018
263
273
```
264
274
265
275
### storage.gcs.bucket
@@ -332,13 +342,22 @@ The maximum amount of time between retries, in seconds. Defaults to 30 sec.
332
342
333
343
Each time PBM fails and tries again, it increases the wait time by multiplying it by this number (usually 2). For example, if the first wait time is 1 second, the next will be 2 seconds, then 4 seconds, and so on, until it reaches the maximum. Default value is 2 sec.
334
344
345
+
### storage.gcs.maxObjSizeGB
346
+
347
+
*Type*: int <br>
348
+
*Required*: NO <br>
349
+
*Default*: 5018
350
+
351
+
The maximum file size to be stored on the backup storage. If the file to upload exceeds this limit, PBM splits it in pieces, each of which falls within the defined limit. Read more about [Managing large backup files](../features/split-merge-backup.md).
352
+
335
353
## Filesystem storage options
336
354
337
355
```yaml
338
356
storage:
339
357
type: filesystem
340
358
filesystem:
341
359
path: <string>
360
+
maxObjSizeGB: 5018
342
361
```
343
362
344
363
### storage.filesystem.path
@@ -348,6 +367,14 @@ storage:
348
367
349
368
The path to the backup directory
350
369
370
+
### storage.filesystem.maxObjSizeGB
371
+
372
+
*Type*: int <br>
373
+
*Required*: NO <br>
374
+
*Default*: 5018
375
+
376
+
The maximum file size to be stored on the backup storage. If the file to upload exceeds this limit, PBM splits it in pieces, each of which falls within the defined limit. Read more about [Managing large backup files](../features/split-merge-backup.md).
377
+
351
378
## Microsoft Azure Blob storage options
352
379
353
380
```yaml
@@ -360,6 +387,7 @@ storage:
360
387
prefix: <string>
361
388
credentials:
362
389
key: <your-access-key>
390
+
maxObjSizeGB: 194560
363
391
```
364
392
365
393
### storage.azure.account
@@ -397,3 +425,10 @@ The path to the data directory in the bucket. If undefined, backups are stored i
397
425
398
426
Your access key to authorize access to data in your storage account.
399
427
428
+
### storage.azure.maxObjSizeGB
429
+
430
+
*Type*: int <br>
431
+
*Required*: NO <br>
432
+
*Default*: 194560
433
+
434
+
The maximum file size to be stored on the backup storage. If the file to upload exceeds this limit, PBM splits it in pieces, each of which falls within the defined limit. Read more about [Managing large backup files](../features/split-merge-backup.md).
0 commit comments