{"id":15715253,"url":"https://github.com/crazyoptimist/backup-mongo","last_synced_at":"2026-04-28T11:32:49.877Z","repository":{"id":118360281,"uuid":"323504031","full_name":"crazyoptimist/backup-mongo","owner":"crazyoptimist","description":"AWS RDS-like backup system for MongoDB","archived":false,"fork":false,"pushed_at":"2023-06-02T10:21:41.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T20:15:41.438Z","etag":null,"topics":["backup","cron","mongo","rds","s3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazyoptimist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-22T02:52:49.000Z","updated_at":"2023-03-23T08:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0dc1d453-a4f1-4760-92a7-b43bdbcdbc39","html_url":"https://github.com/crazyoptimist/backup-mongo","commit_stats":null,"previous_names":["crazyoptimist/backup-mongo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazyoptimist/backup-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fbackup-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fbackup-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fbackup-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fbackup-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/backup-mongo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fbackup-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","cron","mongo","rds","s3"],"created_at":"2024-10-03T21:40:45.916Z","updated_at":"2026-04-28T11:32:49.858Z","avatar_url":"https://github.com/crazyoptimist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup MongoDB\n\n_AWS RDS-like backup service for mongo_\n\nThis application creates complete backups of a MongoDB database.\n\nIt behaves like the backup system in AWS RDS, i.e., it removes old backups, then creates a new backup. You can configure the retention period in weeks like in AWS RDS.\n\nIt's possible to configure the cron expression according to your needs, refer [cron expression generator](https://crontab.cronhub.io/).\n\nIt supports two storage types as of now, `local` and `aws`.\n\n## Deployment\n\n### Configuration\n\nNothing complex, just create your own `.env` file.\n\n```bash\ncp .env.example .env\n```\n\n### Deploy Using Docker(Compose)\n\n```bash\ndocker-compose up -d\n```\n\n### Deploy Using PM2\n\nHave mongodb(version \u003e= 3.6) installed on your operating system first.\n\n```bash\nmkdir backups\nnpm install --global pm2@latest\npm2 start index.js\n```\n\n## Restoration From Backup Files\n\n```bash\nnode restore --file=filename.gz --fromDB=aaa --toDB=bbb\n```\n\nIn the command, `filename.gz` is a backup file generated by this application inside the `local_backups` directory.\n\n`aaa` is the original db name, `bbb` is the destination db name, which are optional.\n\n## License\n\nMIT\n\nCoded with :heart: by [crazyoptimist](https://github.com/crazyoptimist)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fbackup-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Fbackup-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fbackup-mongo/lists"}