{"id":22685893,"url":"https://github.com/sverrirab/postgresql-backup-s3","last_synced_at":"2026-04-18T02:32:02.638Z","repository":{"id":149841321,"uuid":"367631175","full_name":"sverrirab/postgresql-backup-s3","owner":"sverrirab","description":"PostgreSQL backup for Kubernetes clusters","archived":false,"fork":false,"pushed_at":"2025-01-11T13:00:32.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:23:32.842Z","etag":null,"topics":["kubernetes","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sverrirab.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":"2021-05-15T12:53:07.000Z","updated_at":"2025-01-11T13:00:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"35af8d68-cda9-4e47-8a21-8aae5ebfb6df","html_url":"https://github.com/sverrirab/postgresql-backup-s3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sverrirab/postgresql-backup-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fpostgresql-backup-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fpostgresql-backup-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fpostgresql-backup-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fpostgresql-backup-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sverrirab","download_url":"https://codeload.github.com/sverrirab/postgresql-backup-s3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fpostgresql-backup-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["kubernetes","postgresql"],"created_at":"2024-12-09T22:18:26.311Z","updated_at":"2026-04-18T02:32:02.624Z","avatar_url":"https://github.com/sverrirab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgresql-backup-s3\n\nIf you want to take a regular full backup of your PostgreSQL database in your Kubernetes cluster - here is a container and an example cronjob spec.\nIt simply runs `pg_dumpall` and then `aws s3 cp` - you will need to provide the arguments for those commands to work (see below).\n\n* [Example cronjob and secret](./kubernetes/)\n* [Image on Docker hub](https://hub.docker.com/r/sverrirab/postgresql-backup-s3)\n\n## Configuration\n\n### Container specific\n\n| Variable | Required? | Description |\n| -------- | --------- | ----------- |\n| DEST_S3_BUCKET | YES | S3 bucket name |\n| DEST_S3_FOLDER | | S3 folder name |\n| DUMPALL_EXTRA_ARGS | | Additional args (e.g. --schema-only for testing configuration) |\n\n### PostgresSQL specific\n\n| Variable | Required? | Description |\n| -------- | --------- | ----------- |\n| PGUSER | YES | Database user with full access (typically postgres) |\n| PGPASSWORD | YES | Database user password|\n| PGHOST | YES | Host (e.g. db.namespace.svc.cluster.local |\n\nFor more information see: [PostgreSQL env vars](https://www.postgresql.org/docs/13/libpq-envars.html)\n\n### AWS specific\n\nIf your machine is running on AWS with permissions provided by a role this is not required.\n\n| Variable | Required? | Description |\n| -------- | --------- | ----------- |\n| AWS_ACCESS_KEY_ID | | Access key ID |\n| AWS_SECRET_ACCESS_KEY | | Secret Access key |\n\nFor more information see: [AWS CLI env vars](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html)\n\n## License\n\nVery permissive [MIT License](./LICENSE)\n\n## More information\n\n* [PostgresSQL](https://www.postgresql.org/)\n* [Kubernetes](https://kubernetes.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsverrirab%2Fpostgresql-backup-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsverrirab%2Fpostgresql-backup-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsverrirab%2Fpostgresql-backup-s3/lists"}