A Rust CLI to back up MongoDB databases into a zip archive and optionally upload the archive to S3.
make buildhammer backup --connection mongodb://localhost:27017 --database hammer --uploadhammer restore --folder /path/to/your/folder --connection mongodb://localhost:27017 --database example
hammer restore --archive /path/to/backup.zip --connection mongodb://localhost:27017 --database exampleAWS_ACCESS_KEY_ID=example AWS_SECRET_ACCESS_KEY=example AWS_REGION=us-east-1 AWS_BUCKET=example target/release/hammer backup --connection mongodb://localhost:27017 --database example --uploadtarget/release/hammer restore --folder /path/to/your/folder --connection mongodb://localhost:27017 --database exampletarget/release/hammer restore --archive /path/to/backup.zip --connection mongodb://localhost:27017 --database examplemake fmt
make test
make check