{"id":15445187,"url":"https://github.com/f213/postgres-backup-s3","last_synced_at":"2025-09-07T02:05:31.215Z","repository":{"id":40635891,"uuid":"336266693","full_name":"f213/postgres-backup-s3","owner":"f213","description":"The all-you-need docker image to backup postgres to s3","archived":false,"fork":false,"pushed_at":"2025-07-27T19:43:36.000Z","size":32,"stargazers_count":43,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T04:27:36.930Z","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/f213.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,"zenodo":null}},"created_at":"2021-02-05T12:34:24.000Z","updated_at":"2025-07-27T19:42:44.000Z","dependencies_parsed_at":"2024-02-29T12:05:45.731Z","dependency_job_id":null,"html_url":"https://github.com/f213/postgres-backup-s3","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/f213/postgres-backup-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f213%2Fpostgres-backup-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f213%2Fpostgres-backup-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f213%2Fpostgres-backup-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f213%2Fpostgres-backup-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f213","download_url":"https://codeload.github.com/f213/postgres-backup-s3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f213%2Fpostgres-backup-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986629,"owners_count":25202708,"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-09-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2024-10-01T19:44:15.062Z","updated_at":"2025-09-07T02:05:31.207Z","avatar_url":"https://github.com/f213.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-backup-s3\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/f213/postgres-backup-s3?sort=semver)](https://hub.docker.com/r/f213/postgres-backup-s3) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/f213/postgres-backup-s3/latest)  ![Docker Pulls](https://img.shields.io/docker/pulls/f213/postgres-backup-s3)\n\nBackup PostgresSQL to S3 (supports periodic backups)\n\nThis is a fork of [karser/postgres-backup-s3](https://github.com/karser/docker-images) with webhook support\n\n## Usage\n\nDocker:\n```sh\n$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e POSTGRES_DATABASE=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost -e SCHEDULE=\"@daily\" f213/postgres-backup-s3:1.3.0-pg16\n```\n\nDocker Compose:\n```yaml\npostgres:\n  image: postgres\n  environment:\n    POSTGRES_USER: user\n    POSTGRES_PASSWORD: password\n\npostgres-backup:\n  image: f213/postgres-backup-s3\n  links:\n    - postgres\n  healthcheck:\n    test: curl http://localhost:1880\n\n  environment:\n    SCHEDULE: 0 30 */2 * * * *  # every 2 hours at HH:30\n    S3_REGION: region\n    S3_ACCESS_KEY_ID: key\n    S3_SECRET_ACCESS_KEY: secret\n    S3_BUCKET: my-bucket\n    S3_PREFIX: backup\n    POSTGRES_HOST: localhost\n    POSTGRES_DATABASE: dbname\n    POSTGRES_USER: user\n    POSTGRES_PASSWORD: password\n    POSTGRES_EXTRA_OPTS: '--schema=public --blobs'\n    SUCCESS_WEBHOOK: https://sb-ping.ru/8pp9RGwDDPzTL2R8MRb8Ae\n```\n\n### Choose the right version\nWe publish multiple builds targeting specific PostgreSQL versions (now its 15, 16, and 17). While you can always use the latest version, it's recommended to choose the build that matches your server's PostgreSQL version. This prevents compatibility issues where you might create a backup that can't be restored on your current server. For example, if you're running PostgreSQL 15, use tag `1.3.0-pg15` instead of `1.3.0` or `latest`.\n\n### Crontab format\n\nSchedule format with years support. More information about the scheduling can be found [here](https://github.com/aptible/supercronic/tree/master?tab=readme-ov-file#crontab-format)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff213%2Fpostgres-backup-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff213%2Fpostgres-backup-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff213%2Fpostgres-backup-s3/lists"}