{"id":16743427,"url":"https://github.com/gabfl/pg_dump-to-s3","last_synced_at":"2026-02-26T11:32:23.806Z","repository":{"id":47472790,"uuid":"64694601","full_name":"gabfl/pg_dump-to-s3","owner":"gabfl","description":"Automatically dump and archive PostgreSQL backups to Amazon S3","archived":false,"fork":false,"pushed_at":"2023-08-29T21:08:03.000Z","size":30,"stargazers_count":130,"open_issues_count":0,"forks_count":48,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-02T02:37:50.111Z","etag":null,"topics":["database-backup","pg-dump","postgresql","s3"],"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/gabfl.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":"2016-08-01T19:13:52.000Z","updated_at":"2025-03-25T17:23:40.000Z","dependencies_parsed_at":"2024-10-27T12:10:33.337Z","dependency_job_id":null,"html_url":"https://github.com/gabfl/pg_dump-to-s3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabfl/pg_dump-to-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fpg_dump-to-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fpg_dump-to-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fpg_dump-to-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fpg_dump-to-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabfl","download_url":"https://codeload.github.com/gabfl/pg_dump-to-s3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fpg_dump-to-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29857515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database-backup","pg-dump","postgresql","s3"],"created_at":"2024-10-13T01:26:59.112Z","updated_at":"2026-02-26T11:32:23.782Z","avatar_url":"https://github.com/gabfl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_dump-to-s3\n\nAutomatically dump and archive PostgreSQL backups to Amazon S3.\n\n## Requirements\n\n - [AWS cli](https://aws.amazon.com/cli): ```pip install awscli```\n\n## Setup\n\n - Use `aws configure` to store your AWS credentials in `~/.aws` ([read documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration))\n - Edit `.conf` and set your PostgreSQL's credentials and the list of databases to back up. Optionally, the file can be moved to the home directory in `~/.pg_dump-to-s3.conf`.\n - If your PostgreSQL connection uses a password, you will need to store it in `~/.pgpass` ([read documentation](https://www.postgresql.org/docs/current/static/libpq-pgpass.html))\n\n## Usage\n\n```bash\n./pg_dump-to-s3.sh\n\n#  * Backup in progress.,.\n#    -\u003e backing up test...\n# upload: ../../../tmp/2023-06-28-at-22-20-08_test.dump to s3://*****/backups/2023-06-28-at-22-20-08_test.dump\n#       ...database test has been backed up\n#  * Deleting old backups...\n\n# ...done!\n```\n\n## Restore a backup\n\n```bash\n# USAGE: pg_restore-from-s3.sh [db target] [s3 object]\n\n./pg_restore-from-s3.sh my_database_1 2023-06-28-at-10-29-44_my_database_1.dump\n\n# download: s3://your_bucket/folder/2023-06-28-at-22-17-15_my_database_1.dump to /tmp/2023-06-28-at-22-17-15_my_database_1.dump\n# Database my_database_1 already exists, skipping creation\n# 2023-06-28-at-22-17-15_my_database_1.dump restored to database my_database_1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabfl%2Fpg_dump-to-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabfl%2Fpg_dump-to-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabfl%2Fpg_dump-to-s3/lists"}