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:
parent
3ddffdcf51
commit
0bd1ea3053
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -15,6 +15,24 @@ Run [pg_dump](https://www.postgresql.org/docs/9.6/app-pgdump.html) to generate a
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue