mirror of
https://github.com/tj-actions/pg-dump.git
synced 2024-12-20 01:18:49 +00:00
:octocat: Github action to generate backup of a postgres database.
.github | ||
.gitignore | ||
.whitesource | ||
action.yml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
HISTORY.md | ||
LICENSE | ||
README.md | ||
renovate.json |
pg-dump
Run pg_dump to generate a backup
...
steps:
- uses: actions/checkout@v2
- name: Postgres Dump Backup
uses: tj-actions/pg-dump@v1
with:
database_url: "postgres://test_user:test_user_password@localhost:5432/testdb"
path: "backups/backup.sql"
options: "-O"
Inputs
Input | type | required | default | description |
---|---|---|---|---|
database_url | string |
true |
Database URL | |
path | string |
true |
Backup file output location | |
options | string |
true |
-O |
Extra options passed to pg_dump |
- Free software: MIT license
If you feel generous and want to show some extra appreciation:
Credits
This package was created with Cookiecutter.
Report Bugs
Report bugs at https://github.com/tj-actions/pg-dump/issues.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your workflow that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.