Update documentation

This commit is contained in:
Ramon Wenger 2021-10-18 17:30:56 +02:00
parent b4c9e01fcb
commit 60e3cc264c
2 changed files with 22 additions and 15 deletions

View File

@ -128,21 +128,8 @@ Change DATABASE URL (e.g after a rollback)
### Backup
Create a backup
See [Docs](./docs/heroku-backup.md)
`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

View File

@ -1,6 +1,26 @@
### list backups
### List backups
```
heroku login
heroku pg:backups --app skillbox-prod
```
### 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>`
To download a backup use
`heroku pg:backups:download --app <appname>`