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
dependabot[bot] 11f4ffa3a4 Bump tj-actions/verify-changed-files from 13 to 14
Bumps [tj-actions/verify-changed-files](https://github.com/tj-actions/verify-changed-files) from 13 to 14.
- [Release notes](https://github.com/tj-actions/verify-changed-files/releases)
- [Changelog](https://github.com/tj-actions/verify-changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/verify-changed-files/compare/v13...v14)

---
updated-dependencies:
- dependency-name: tj-actions/verify-changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 03:00:33 -06:00
.github Bump tj-actions/verify-changed-files from 13 to 14 2023-03-17 03:00:33 -06:00
backups Auto updated backup.sql. 2023-02-18 09:33:12 -07: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 2023-01-11 08:37:32 -07: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.4 -> v2.5 2022-12-20 04:47:10 +00:00
LICENSE Initial commit. 2021-01-30 21:26:56 -05:00
README.md Updated README.md 2023-01-11 15:37:58 +00:00
renovate.json Updated renovate.json 2021-10-15 20:30:21 -04:00

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/pg-dump@v2.3
        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
options string true "-O" Extra options passed to pg_dump
path string true Backup file output location

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.