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: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ docker run -d --name mongodump \
53
53
lgatica/mongodump-s3
54
54
```
55
55
56
-
### Inmediatic backup
56
+
### Immediate backup
57
57
58
58
```bash
59
59
docker run -d --name mongodump \
@@ -65,9 +65,9 @@ docker run -d --name mongodump \
65
65
lgatica/mongodump-s3
66
66
```
67
67
68
-
## IAM Policity
68
+
## IAM Policy
69
69
70
-
You need to add a user with the following policies. Be sure to change `your_bucket` by the correct.
70
+
You need to add a user with the following policies. Be sure to change `your_bucket` by the correct name.
71
71
72
72
```xml
73
73
{
@@ -98,12 +98,19 @@ You need to add a user with the following policies. Be sure to change `your_buck
98
98
}
99
99
```
100
100
101
-
## Extra environmnet
101
+
## Extra environment
102
102
103
103
-`S3_PATH` - Default value is `mongodb`. Example `s3://your_bucket/mongodb`
104
104
-`MONGO_COMPLETE` - Default not set. If set doing backup full mongodb
105
105
-`MAX_BACKUPS` - Default not set. If set doing it keeps the last n backups in /backup
106
106
-`AWS_S3_ENDPOINT` - Default not set. You can use this for backing up to other s3 compatible storages
107
+
-`BACKUP_NAME` - Default is `$(date -u +%Y-%m-%d_%H-%M-%S)_UTC.gz`. If set this is the name of the backup file. Useful when using s3 versioning. (Remember to place .gz extension on your filename)
108
+
-`EXTRA_OPTIONS` - Default not set.
109
+
110
+
## Troubleshoot
111
+
112
+
1. If you get SASL Authentication failure, add `--authenticationDatabase=admin` to EXTRA_OPTIONS.
113
+
2. If you get "Failed: error writing data for collection ... Unrecognized field 'snapshot'", add `--forceTableScan` to EXTRA_OPTIONS.
0 commit comments