{"id":40681819,"url":"https://github.com/emundo/postgresql-backup","last_synced_at":"2026-01-21T10:33:51.096Z","repository":{"id":63854387,"uuid":"107091217","full_name":"emundo/postgresql-backup","owner":"emundo","description":"postgresql-backup Docker Image","archived":false,"fork":false,"pushed_at":"2019-02-26T08:28:37.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-15T00:05:39.355Z","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/emundo.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}},"created_at":"2017-10-16T07:14:27.000Z","updated_at":"2017-10-16T07:15:49.000Z","dependencies_parsed_at":"2022-11-27T17:15:44.926Z","dependency_job_id":null,"html_url":"https://github.com/emundo/postgresql-backup","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emundo/postgresql-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emundo%2Fpostgresql-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emundo%2Fpostgresql-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emundo%2Fpostgresql-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emundo%2Fpostgresql-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emundo","download_url":"https://codeload.github.com/emundo/postgresql-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emundo%2Fpostgresql-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-21T10:33:50.344Z","updated_at":"2026-01-21T10:33:51.089Z","avatar_url":"https://github.com/emundo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-postgres-backup\n\nthis is forked from https://github.com/jmcarbo/docker-postgres-backup\nThis image runs pg_dump to backup data using cronjob to folder `/backup`\n\n## Usage:\n\n    docker run -d \\\n        --env POSTGRES_HOST=mysql.host \\\n        --env POSTGRES_PORT=27017 \\\n        --env POSTGRES_USER=admin \\\n        --env POSTGRES_PASSWORD=password \\\n        --volume host.folder:/backup\n        nexus.rancher.emundo.local/emundo-ci/postgres-backup\n\nMoreover, if you link `nexus.rancher.emundo.local/emundo-ci/postgres-backup` to a postgres container (e.g. `tutum/mysql`) with an alias named pg, this image will try to auto load the `host`, `port`, `user`, `pass` if possible.\n\n    docker run -d -p 27017:27017 -p 28017:28017 -e PG_PASS=\"mypass\" --name pg postgres\n    docker run -d --link pg:pg -v host.folder:/backup nexus.rancher.emundo.local/emundo-ci/postgres-backup\n\n## Parameters\n\n    POSTGRES_HOST      the host/ip of your postgres database\n    POSTGRES_PORT      the port number of your postgres database\n    POSTGRES_USER      the username of your postgres database\n    POSTGRES_PASSWORD      the password of your postgres database\n    POSTGRES_DB        the database name to dump. Default: `--all-databases`\n    EXTRA_OPTS      the extra options to pass to pg_dump command\n    CRON_TIME       the interval of cron job to run pg_dump. `0 0 * * *` by default, which is every day at 00:00\n    MAX_BACKUPS     the number of backups to keep. When reaching the limit, the old backup will be discarded. No limit by default\n    INIT_BACKUP     if set, create a backup when the container starts\n    INIT_RESTORE_LATEST if set, restores latest backup\n\n## Restore from a backup\n\nSee the list of backups, you can run:\n\n    docker exec docker-postgres-backup ls /backup\n\nTo restore database from a certain backup, simply run:\n\n    docker exec docker-postgres-backup /restore.sh /backup/2015.08.06.171901\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femundo%2Fpostgresql-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femundo%2Fpostgresql-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femundo%2Fpostgresql-backup/lists"}