Skip to content

:octocat: Github action to generate backup of a postgres database.

License

Notifications You must be signed in to change notification settings

IET-NITK/pg-dump

 
 

Repository files navigation

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

pg-dump

Run pg_dump to generate a backup

Usage

...
    steps:
      - uses: actions/checkout@v2
      - name: Postgres Dump Backup
        uses: tj-actions/[email protected]
        with:
          database_url: "postgres://test_user:test_user_password@localhost:5432/testdb"
          path: "backups/backup.sql" 
          options: "-O"   

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

Support this project with a ⭐

Buy me a coffee

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

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.

About

:octocat: Github action to generate backup of a postgres database.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published