Update readme

This commit is contained in:
Ramon Wenger 2020-09-02 12:41:31 +02:00
parent 05c43b80fc
commit 1ee78adc03
1 changed files with 12 additions and 0 deletions

View File

@ -110,10 +110,22 @@ Change DATABASE URL (e.g after a rollback)
### Backup
Create a backup
`heroku pg:backups:capture --app <appname>`
The following command will provide a URL to where the backup can be downloaded (expires after 60 minutes)
`heroku pg:backups:url b001 --app <appname>`
To restore a backup, use
`heroku pg:backups:restore b001 DATABASE_URL --app <appname>`
To see the backup schedule
`heroku pg:backus:schedules --app <appname>`
## AWS
1. Create user with API Access and add `access key id` and `access key` to `.env` and set `USE_AWS=True`