{"id":25330990,"url":"https://github.com/thomascogez/dump-and-dumper","last_synced_at":"2026-05-15T22:31:20.017Z","repository":{"id":39571885,"uuid":"506543384","full_name":"Thomascogez/dump-and-dumper","owner":"Thomascogez","description":"A simple cli tool to streamline backup process of containerized databases","archived":false,"fork":false,"pushed_at":"2023-03-30T10:36:09.000Z","size":174,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T05:49:58.074Z","etag":null,"topics":["backup","cli","docker","posgresql","s3-bucket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Thomascogez.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":"2022-06-23T07:41:15.000Z","updated_at":"2022-10-31T17:39:28.000Z","dependencies_parsed_at":"2024-06-21T11:00:46.625Z","dependency_job_id":"0cb315d9-556a-4544-aeeb-0691b9879abd","html_url":"https://github.com/Thomascogez/dump-and-dumper","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":"0.18518518518518523","last_synced_commit":"5a50d2a029e3e7216d4e08bffafd3eb1da2c99b3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Thomascogez/dump-and-dumper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomascogez%2Fdump-and-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomascogez%2Fdump-and-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomascogez%2Fdump-and-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomascogez%2Fdump-and-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thomascogez","download_url":"https://codeload.github.com/Thomascogez/dump-and-dumper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomascogez%2Fdump-and-dumper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734406,"owners_count":26036404,"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-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["backup","cli","docker","posgresql","s3-bucket"],"created_at":"2025-02-14T03:56:33.297Z","updated_at":"2025-10-07T06:50:03.058Z","avatar_url":"https://github.com/Thomascogez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Dump \u0026 dumper](./assets/dump-and-dumper.png)\n\n\u003ccenter\u003e\n    \u003ch1\u003eDump \u0026 dumper\u003c/h1\u003e\n\u003c/center\n\nDump \u0026 dumper is a simple cli tool written in go to ease the process of containerized database backup and upload result into a s3 bucket\n\n\u003e Dump \u0026 dumper 1.0.0 currently support only _postgress_ database\n\n# Install\n\nUsing *Homebrew*\n\n```sh\nbrew tap Thomascogez/thomascogez\n\n```\nThen\n```sh\nbrew install dump-and-dumper\n```\n\n# Usage\n\n\nAdd labels to the containers you want to dump\n\nThe above labels are currently available\n| label             | description                                        |\n| ----------------- | -------------------------------------------------- |\n| dump-and-dumper.enabled | Use to determined if the container should be dump  |\n| dump-and-dumper.user    | The database user to use during the dump process   |\n| dump-and-dumper.type    | The database type (for now only \"pg\" is available) |\n\n\u003e docker-compose example\n```yml\nversion: '3.0'\n    services:\n        pg_dump_1:\n            image: postgres:latest\n            environment:\n            POSTGRES_PASSWORD: test\n            POSTGRES_DB: test\n            labels:\n                - 'dump-and-dumper.enabled=true'\n                - 'dump-and-dumper.user=postgres'\n                - 'dump-and-dumper.type=pg'\n```\n\nThen start or restart your docker containers\n\n\nAfter that you can run the dump command using desired s3 options\n\nThe above flags are available\n\n| flag              | description                        |\n| ----------------- | ---------------------------------- |\n| --s3-endpoint     | Set the endpoint of your s3 bucket |\n| --s3-bucket       | Set the targeted bucket name       |\n| --s3-secretKeyId  | Set the secret key id              |\n| --s3-secretKey    | Set the secret key                 |\n\n```sh\ndump-and-dumper dump  --s3-endpoint=S3_ENDPOINT --s3-bucket=BUCKET_NAME --s3-secretKeyId=SECRET_KEY_ID --s3-secretKey=SECRET_KEY --s3-region=REGION\n\n```\n# Success callback/notify\ndump-and-dumper have also the ability to notify you after a successfull dump.\n\u003e For now only https://ntfy.sh/ is available\n\nto use it simple add the flag ```--ntfy-endpoint=``` where the value is your ntfy topic endpoint\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomascogez%2Fdump-and-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomascogez%2Fdump-and-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomascogez%2Fdump-and-dumper/lists"}