https://github.com/ringsaturn/mongosync
Sync collection data between mongo instances
https://github.com/ringsaturn/mongosync
mongodb
Last synced: 4 months ago
JSON representation
Sync collection data between mongo instances
- Host: GitHub
- URL: https://github.com/ringsaturn/mongosync
- Owner: ringsaturn
- License: mit
- Created: 2022-12-01T07:37:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T23:32:50.000Z (6 months ago)
- Last Synced: 2025-01-29T00:13:22.362Z (4 months ago)
- Topics: mongodb
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mongosync
```bash
go install github.com/ringsaturn/mongosyncmongosync -SourceDB foo -SourceCollection bar1 -TargetDB foo -TargetCollection bar2
``````txt
Usage of mongosync:
-BatchSize int
batch size (default 20)
-InChanSize int
in chan buffer size (default 2000)
-LastOIDHex string
from which moid (default "000000000000000000000000")
-OutChanSize int
out chan buffer size (default 2000)
-ReadSpeed int
read QPS (default 500)
-SourceCollection string
which collection data come from
-SourceDB string
which database data come from
-SourceURI string
which instance data come from (default "mongodb://localhost:27017")
-TargetCollection string
which collection data come from
-TargetDB string
which database data come from
-TargetURI string
which instance data come from (default "mongodb://localhost:27017")
-Workers int
how many workers (default 10)
-WriteSpeed int
write QPS (default 100)
```