File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
https://github.com/gregburek/heroku-buildpack-toolbelt.git
2
- https://github.com/peterkeen/heroku-buildpack-vendorbinaries
Original file line number Diff line number Diff line change
1
+ * .swp
2
+ tmp
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,11 +18,16 @@ if [[ -z "$S3_BUCKET_PATH" ]]; then
18
18
exit 1
19
19
fi
20
20
21
+ # install aws-cli
22
+ curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip
23
+ jar xvf awscli-bundle.zip
24
+ ./awscli-bundle/install -i /tmp/aws
25
+
21
26
BACKUP_FILE_NAME=" $( date +" %Y-%m-%d-%H-%M" ) -$APP -$DATABASE .dump"
22
27
23
28
/app/vendor/heroku-toolbelt/bin/heroku pgbackups:capture $DATABASE -e --app $APP
24
29
curl -o $BACKUP_FILE_NAME ` /app/vendor/heroku-toolbelt/bin/heroku pgbackups:url --app $APP `
25
30
gzip $BACKUP_FILE_NAME
26
- /app/vendor/awscli /bin/aws s3 cp $BACKUP_FILE_NAME .gz s3://$S3_BUCKET_PATH /$APP /$DATABASE /$BACKUP_FILE_NAME .gz
31
+ /tmp/aws /bin/aws s3 cp $BACKUP_FILE_NAME .gz s3://$S3_BUCKET_PATH /$APP /$DATABASE /$BACKUP_FILE_NAME .gz
27
32
echo " backup $BACKUP_FILE_NAME complete"
28
33
You can’t perform that action at this time.
0 commit comments