0
0
Fork 0
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.
Find a file
2021-10-21 11:06:44 -04:00
.github Bump tj-actions/sync-release-version from 8.7 to 9 2021-10-18 04:16:23 -04:00
.gitignore Initial commit. 2021-01-30 21:26:56 -05:00
.whitesource Added .whitesource 2021-07-02 12:52:34 -04:00
action.yml Update action.yml 2021-10-04 15:48:19 -04:00
CODE_OF_CONDUCT.md Added CODE_OF_CONDUCT.md 2021-07-02 16:43:52 -04:00
CONTRIBUTING.md Initial commit. 2021-01-30 21:26:56 -05:00
HISTORY.md Upgraded from v2.1 -> v2.2 2021-10-04 22:50:19 +00:00
LICENSE Initial commit. 2021-01-30 21:26:56 -05:00
README.md Update README.md 2021-10-21 11:06:44 -04:00
renovate.json Updated renovate.json 2021-10-15 20:30:21 -04:00

CI Update release version. Public workflows that use this action.

pg-dump

Run pg_dump to generate a backup

...
    steps:
      - uses: actions/checkout@v2
      - name: Postgres Dump Backup
        uses: tj-actions/pg-dump@v2.2
        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

If you feel generous and want to show some extra appreciation:

Buy me a coffee

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.