{"id":21522139,"url":"https://github.com/startupjs/docker-mongo-backup","last_synced_at":"2025-03-17T17:23:04.798Z","repository":{"id":46671931,"uuid":"344508485","full_name":"startupjs/docker-mongo-backup","owner":"startupjs","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-16T11:38:36.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T04:52:03.724Z","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/startupjs.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":"2021-03-04T14:48:46.000Z","updated_at":"2021-03-10T18:16:49.000Z","dependencies_parsed_at":"2022-09-15T10:50:55.164Z","dependency_job_id":null,"html_url":"https://github.com/startupjs/docker-mongo-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startupjs%2Fdocker-mongo-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startupjs%2Fdocker-mongo-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startupjs%2Fdocker-mongo-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startupjs%2Fdocker-mongo-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/startupjs","download_url":"https://codeload.github.com/startupjs/docker-mongo-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075659,"owners_count":20393980,"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","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":"2024-11-24T01:09:24.490Z","updated_at":"2025-03-17T17:23:04.771Z","avatar_url":"https://github.com/startupjs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mongodb cron backup to Google Cloud Storage (GCE)\n\n## How To Use\n```\ndocker run -d -e PROJECT_ID=unique_id_on_gce -e GS_ID=gs_access_key_id -e GS_SECRET=gs_secret_access_key -e MONGO_HOST=127.0.0.1:27017 -e MONGO_USER=user -e MONGO_PASS=password -e BUCKET=storage-bucket -e CRON_TIME=\"0 1 * * *\" startupjs/mongo-backup:master\n```\n\n## Environment Variables\n\n#### PROJECT_ID - [Demo(3)](https://storage.googleapis.com/cdn.chessboardradio.com/lab/docker-mongodb-backup-gce/get-storage-keys.png)\nThe project id on Google Cloud, need be the **default**.\n\n#### GS_ID - [Demo(4)](https://storage.googleapis.com/cdn.chessboardradio.com/lab/docker-mongodb-backup-gce/get-storage-keys.png)\nThe **Access Key** of Interoperability session.\n\n#### GS_SECRET - [Demo(4)](https://storage.googleapis.com/cdn.chessboardradio.com/lab/docker-mongodb-backup-gce/get-storage-keys.png)\nThe **Secret Key** of Interoperability session.\n\n#### BUCKET\nThe bucket name, need create the bucket on Google Cloud Console before.\n\n#### MONGO_HOST\nThe IP or domain of your Mongodb server, with the port (127.0.0.1:27017).\n\n#### MONGO_USER\nIf your server need authentication, set the user of current database.\n\n#### MONGO_PASS\nLike before but for the password.\n\n#### AUTHDB\nIf you are using authentication, set the [authentication database](https://docs.mongodb.com/database-tools/mongodump/#std-option-mongodump.--authenticationDatabase)\n\n#### CRON_TIME\nThe **cron time**, the frequency that will generate a new backup, default is `0 1 * * *` every day at 1am (GTM).\nHere is a good [cron generator](http://crontab-generator.org/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartupjs%2Fdocker-mongo-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartupjs%2Fdocker-mongo-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartupjs%2Fdocker-mongo-backup/lists"}