{"id":24383523,"url":"https://github.com/firstandthird/mongobackup-s3","last_synced_at":"2025-07-22T05:05:12.301Z","repository":{"id":20501610,"uuid":"23780070","full_name":"firstandthird/mongobackup-s3","owner":"firstandthird","description":"A dockerfile to backup mongo to s3","archived":false,"fork":false,"pushed_at":"2019-10-01T16:55:27.000Z","size":13,"stargazers_count":11,"open_issues_count":2,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T01:12:25.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/firstandthird.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}},"created_at":"2014-09-08T05:18:45.000Z","updated_at":"2018-09-09T17:34:21.000Z","dependencies_parsed_at":"2022-08-30T18:21:15.186Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/mongobackup-s3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firstandthird/mongobackup-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmongobackup-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmongobackup-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmongobackup-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmongobackup-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/mongobackup-s3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmongobackup-s3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266430676,"owners_count":23927167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-19T10:14:42.188Z","updated_at":"2025-07-22T05:05:12.276Z","avatar_url":"https://github.com/firstandthird.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongobackup-s3\n\nA simple docker container to backup MongoDB to S3, restore backups, and list backups.  Easy to integrate with cron.\n\n## Usage\n\n### Backup\nTo initiate a backup: (you can now pass in `--env DB=[db]` to only backup a specific db)\n\n```\ndocker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket firstandthird/mongobackup-s3\n```\n\n#### Customizing backup names\nThe naming used by backups can also be customised through environment variables:\n- ``DATEFORMAT`` accepts a Unix date format. Defaults to: ``%Y%m%d_%H%M%S``\n- ``FILEPREFIX`` to add a prefix to the start of the backup's name. Defaults to blank.\n\n**Example**\nTo add a file like ``mongodb.2016-02-08-03-10-20.tar.gz`` to your AWS bucket:\n```\ndocker run --rm --link mongo:mongo --env DATEFORMAT=%Y-%m-%d-%H-%M-%S --env FILEPREFIX=mongodb. --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket firstandthird/mongobackup-s3\n```\n\n## List\nTo list the backups on S3:\n\n```\ndocker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket firstandthird/mongobackup-s3 list\n```\n\n## Restore Latest\nTo restore the latest backup on S3:\n```\ndocker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket firstandthird/mongobackup-s3 latest\n```\n\nThe sort order is used to determine the latest backup. If a ``FILEPREFIX`` is defined, this will filter the bucket list results. If using a custom ``DATEFORMAT``, ensure the sort order will still represent the correct date order.\n\n## Restore\nTo restore a given backup, where `[backup-file-name]` is the name of the backup file you would like to restore:\n\n```\ndocker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket firstandthrd/mongobackup-s3 [backup-file-name]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fmongobackup-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fmongobackup-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fmongobackup-s3/lists"}