Skip to content

sqnc-cloud/hammer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hammer

a cli tool to backup your mongodb on aws s3

Building

  go build -o hammer cmd/main.go

Running

Backup

hammer backup --upload --connection mongodb://localhost:27017 --database hammer

Restore

hammer restore --folder /path/to/your/folder --connection mongodb://localhost:27017 --database example 

Example of use

Backup

 AWS_ACCESS_KEY_ID=example AWS_SECRET_ACCESS_KEY=example AWS_REGION=us-east-1 AWS_BUCKET=example hammer backup --upload --connection mongodb://localhost:27017 --database example

Restore

 hammer restore --folder /path/to/your/folder --connection mongodb://localhost:27017 --database example

About

a cli tool to backup your mongo database on aws s3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages