From 1ee78adc030da3dec9ade96817a2339e62052f45 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 2 Sep 2020 12:41:31 +0200 Subject: [PATCH] Update readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 77bbe261..690a37d5 100644 --- a/README.md +++ b/README.md @@ -110,10 +110,22 @@ Change DATABASE URL (e.g after a rollback) ### Backup +Create a backup + `heroku pg:backups:capture --app ` +The following command will provide a URL to where the backup can be downloaded (expires after 60 minutes) + `heroku pg:backups:url b001 --app ` +To restore a backup, use + +`heroku pg:backups:restore b001 DATABASE_URL --app ` + +To see the backup schedule + +`heroku pg:backus:schedules --app ` + ## AWS 1. Create user with API Access and add `access key id` and `access key` to `.env` and set `USE_AWS=True`