{"id":19234475,"url":"https://github.com/andornaut/backup-docker-postgresql","last_synced_at":"2026-04-17T08:03:50.664Z","repository":{"id":73160761,"uuid":"65113534","full_name":"andornaut/backup-docker-postgresql","owner":"andornaut","description":"Backup from and restore to local or remote Dockerized PostgreSQL databases","archived":false,"fork":false,"pushed_at":"2017-06-06T00:43:58.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T01:11:57.512Z","etag":null,"topics":["backup","docker","postgresql","restore"],"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/andornaut.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":"2016-08-07T03:23:43.000Z","updated_at":"2021-01-16T00:33:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b23cc06-a70f-4f8d-b40e-28b1fcf57d1f","html_url":"https://github.com/andornaut/backup-docker-postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andornaut%2Fbackup-docker-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andornaut%2Fbackup-docker-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andornaut%2Fbackup-docker-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andornaut%2Fbackup-docker-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andornaut","download_url":"https://codeload.github.com/andornaut/backup-docker-postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240310864,"owners_count":19781341,"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","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":["backup","docker","postgresql","restore"],"created_at":"2024-11-09T16:13:50.547Z","updated_at":"2026-04-17T08:03:50.627Z","avatar_url":"https://github.com/andornaut.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backup-docker-postgresql\n\nBackup from and restore to local or remote PostgreSQL databases, which are (optionally) running in Docker containers.\n \n## Backup with [backupdockerpostgresql](./backupdockerpostgresql)\n\n### Example\n\n```\n$ ./backupdockerpostgresql --kill --host user@example.com --container postgres backup.gz\n```\n\n### Usage\n\n```\nbackupdockerpostgresql [--help] [--kill] [--host \u003chostname\u003e] [--container \u003cid\u003e] [backup_file]\n```\n\nFlag | Argument | Description\n--- | --- | ---\n-c, --container | id or name | The id or name of the Docker container in which PostgreSQL is running. If omitted, then connect to the database running directly on the host.\n-h, --host | hostname | The remote host to connect to\n-k, --kill | | Close all other database connections\n--help | | Print a help message and exit\n\nArgument | Required |Description\n--- | --- | ---\nbackup_file | no | The optional file to which to save the backup data. If not specified, then the backup data will be written to stdout\n\n\n## Restore with [restoredockerpostgresql](./restoredockerpostgresql)\n\n### Example\n\n```\n$ ./restoredockerpostgresql --kill --host user@example.com --container 376064e2a45e backup.gz\n```\n\n### Usage\n\n```\nrestoredockerpostgresql [--help] [--drop] [--kill] [--host \u003chostname\u003e] [--container \u003cid\u003e] [backup_file]\n```\n\nFlag | Argument | Description\n--- | --- | ---\n-c, --container | id or name | The id or name of the Docker container in which PostgreSQL is running. If omitted, then connect to the database running directly on the host.\n-d, --drop | | Drop all non-template databases except for the one named \"postgres\"\n-h, --host | hostname | The remote host to connect to\n-k, --kill | | Close all other database connections\n--help | | Print a help message and exit\n\nArgument | Required |Description\n--- | --- | ---\nbackup_file | no | The optional file from which to read the backup data. If not specified, then the backup data will be read from stdin\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandornaut%2Fbackup-docker-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandornaut%2Fbackup-docker-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandornaut%2Fbackup-docker-postgresql/lists"}