0
0
Fork 0
mirror of https://github.com/tj-actions/pg-dump.git synced 2024-12-20 01:18:49 +00:00

Update README.md

This commit is contained in:
Tonye Jack 2021-01-30 22:06:22 -05:00 committed by GitHub
parent 3ddffdcf51
commit 0bd1ea3053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,24 @@ Run [pg_dump](https://www.postgresql.org/docs/9.6/app-pgdump.html) to generate a
options: "-O" options: "-O"
``` ```
> NOTE: Ensure the backup output file exists.
Example
```yaml
steps:
- uses: actions/checkout@v2
- name: Create backup file
run: |
touch backups/backup.sql
- 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 ## Inputs