Olivier Pichon
4 years ago
4 changed files with 49 additions and 32 deletions
-
36mysql-backup-s3/Dockerfile
-
5mysql-backup-s3/README.md
-
15mysql-backup-s3/backup.sh
-
25mysql-backup-s3/install.sh
@ -1,25 +0,0 @@ |
|||||
#! /bin/sh |
|
||||
|
|
||||
# exit if a command fails |
|
||||
set -e |
|
||||
|
|
||||
|
|
||||
apk update |
|
||||
|
|
||||
# install mysqldump |
|
||||
apk add mysql-client |
|
||||
|
|
||||
# install s3 tools |
|
||||
apk add python py-pip |
|
||||
pip install awscli |
|
||||
apk del py-pip |
|
||||
|
|
||||
# install go-cron |
|
||||
apk add curl |
|
||||
curl -L --insecure https://github.com/odise/go-cron/releases/download/v0.0.6/go-cron-linux.gz | zcat > /usr/local/bin/go-cron |
|
||||
chmod u+x /usr/local/bin/go-cron |
|
||||
apk del curl |
|
||||
|
|
||||
|
|
||||
# cleanup |
|
||||
rm -rf /var/cache/apk/* |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue