Public | Automated Build

Last pushed: a year ago
Short Description
Lightwieght s3 backup management scripts.
Full Description

There are two scripts:

/usr/bin/backup:

  • takes data on stdin, stores them in a folder on s3
  • rotates backups keeping latest three copies

/usr/bin/restore:

  • picks latest backup
  • downloads it and sends it to stdout
mysqldump (...) | docker run -e AWS_ACCESS_KEY_ID=**** -e AWS_SECRET_ACCESS_KEY=******** --entrypoint bash samepagelabs/s3-backup /usr/bin/backup zabbix s3://.../.../
docker run -e AWS_ACCESS_KEY_ID=**** -e AWS_SECRET_ACCESS_KEY=******** --entrypoint bash samepagelabs/mysql-backup /usr/bin/restore zabbix s3://.../.../ | mysql (...)
Docker Pull Command
Owner
samepagelabs
Source Repository

Comments (0)