{"id":18074962,"url":"https://github.com/lnsp/pgsql-backup-s3","last_synced_at":"2025-10-13T10:39:04.527Z","repository":{"id":82588189,"uuid":"185863747","full_name":"lnsp/pgsql-backup-s3","owner":"lnsp","description":"Small tool that performs a PostgreSQL backup and stores the result in a S3-compatible service. ","archived":false,"fork":false,"pushed_at":"2023-02-25T00:12:42.000Z","size":20,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T17:04:55.646Z","etag":null,"topics":["aws","backup","digitalocean-spaces","dump","postgresql","s3"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnsp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-05-09T20:03:44.000Z","updated_at":"2023-03-05T04:59:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"85eb7d14-f2b0-4f26-bf37-bce9597289f2","html_url":"https://github.com/lnsp/pgsql-backup-s3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lnsp/pgsql-backup-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fpgsql-backup-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fpgsql-backup-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fpgsql-backup-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fpgsql-backup-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnsp","download_url":"https://codeload.github.com/lnsp/pgsql-backup-s3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fpgsql-backup-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014650,"owners_count":26085555,"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-13T02:00:06.723Z","response_time":61,"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":["aws","backup","digitalocean-spaces","dump","postgresql","s3"],"created_at":"2024-10-31T10:43:56.984Z","updated_at":"2025-10-13T10:39:04.498Z","avatar_url":"https://github.com/lnsp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgsql-backup-s3\n[![Build](https://github.com/lnsp/pgsql-backup-s3/workflows/Docker/badge.svg)](https://github.com/lnsp/pgsql-backup-s3/packages)\n\nSmall tool that performs a PostgreSQL backup and push the dump to an S3-compatible service.\n\n## Environment configuration\n\n| Variable       | Description                  | Default value        |\n|----------------|------------------------------|----------------------|\n| `HOST`         | Host parameter for `pg_dump` | `\"localhost\"`        |\n| `PORT`         | Port parameter for `pg_dump` | `\"5432\"`             |\n| `DATABASE`     | Database to dump             | none                 |\n| `USER`         | Access role                  | `\"root\"`             |\n| `PASSWORD`     | Access password              | `\"root\"`             |\n| `PGDUMPBINARY` | Binary location of `pg_dump` | `\"/usr/bin/pg_dump\"` |\n| `ACCESSKEY`    | Access key for S3 service    | none                 |\n| `SECRETKEY`    | Secret key for S3 service    | none                 |\n| `ENDPOINT`     | S3 endpoint name             | none                 |\n| `BUCKET`       | S3 bucket identifier         | none                 |\n| `PATH`         | Backup file path             | `\"\"`                 |\n| `PREFIX`       | Backup file prefix           | `\"\"`                 |\n\n## Run on Kubernetes\n\nIf you want to run the prebuilt container on Kubernetes, you are welcomed to do so. In the `/docs` folder you find a `CronJob` manifest example.\n\n## Build from scratch\n\nSince this project supports Go modules, building it from scratch is very straightforward.\n\n```bash\ngit clone https://github.com/lnsp/pgsql-backup-s3.git\ncd pgsql-backup-s3\ngo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fpgsql-backup-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnsp%2Fpgsql-backup-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fpgsql-backup-s3/lists"}