Move script, update readme

This commit is contained in:
Ramon Wenger 2021-06-24 16:34:58 +02:00
parent 1d5bb61761
commit f39d3c7f88
2 changed files with 28 additions and 0 deletions

View File

@ -230,3 +230,31 @@ python manage.py export_schema_for_cypress
```
python manage.py export_schema_graphql
```
## Backup to S3
From https://pawelurbanek.com/heroku-postgresql-s3-backup
### Initial setup per Heroku Dyno
```
heroku buildpacks:add heroku-community/awscli
heroku config:set BACKUP_AWS_ACCESS_KEY_ID=[Your AWS Access Key ID]
heroku config:set BACKUP_AWS_SECRET_ACCESS_KEY=[Your AWS Secret Access Key]
heroku config:set BACKUP_S3_BUCKET_NAME=[Your S3 bucket name]
```
```
heroku authorizations:create => TOKEN
heroku config:set HEROKU_API_KEY=[TOKEN]
heroku buildpacks:add heroku-community/cli
```
```
heroku config:set APP_NAME=app-name
```
```
heroku config:set PG_BACKUP_PASSWORD=$(openssl rand -base64 32)
```