diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 67f10b0..0000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM ubuntu:trusty -MAINTAINER Borja Burgos , Mia Iversen -AWS_SECRET_ACCESS_KEY= -AWS_DEFAULT_REGION=us-east-1 -BACKUP_NAME=mysql -PATHS_TO_BACKUP=/etc/mysql /var/lib/mysql -S3_BUCKET_NAME=docker-backups.example.com -RESTORE=false -``` - -`dockup` will use your AWS credentials to create a new bucket with name as per the environment variable `S3_BUCKET_NAME`, or if not defined, using the default name `docker-backups.example.com`. The paths in `PATHS_TO_BACKUP` will be tarballed, gzipped, time-stamped and uploaded to the S3 bucket. - - -## Restore -To restore your data simply set the `RESTORE` environment variable to `true` - this will restore the latest backup from S3 to your volume. - - -## A note on Buckets - -> [Bucket naming guidelines](http://docs.aws.amazon.com/cli/latest/userguide/using-s3-commands.html): -> "Bucket names must be unique and should be DNS compliant. Bucket names can contain lowercase letters, numbers, hyphens and periods. Bucket names can only start and end with a letter or number, and cannot contain a period next to a hyphen or another period." - -These rules are enforced in some regions. - - -[AWS S3 Regions](http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - -| Region name | Region | -| ------------------------- | -------------- | -| US Standard | us-east-1 | -| US West (Oregon) | us-west-2 | -| US West (N. California) | us-west-1 | -| EU (Ireland) | eu-west-1 | -| EU (Frankfurt) | eu-central-1 | -| Asia Pacific (Singapore) | ap-southeast-1 | -| Asia Pacific (Sydney) | ap-southeast-2 | -| Asia Pacific (Tokyo) | ap-northeast-1 | -| South America (Sao Paulo) | sa-east-1 | - - -To perform a restore launch the container with the RESTORE variable set to true +This repo is deprecated: we are not going to maintain it anymore. +You can visit [Docker Store](https://store.docker.com) to explore similar images. -![](http://s.tutum.co.s3.amazonaws.com/support/images/dockup-readme.png) +To access the last commit of the code, please switch to [master branch](https://github.com/tutumcloud/dockup/tree/master). diff --git a/backup.sh b/backup.sh deleted file mode 100755 index 20e221c..0000000 --- a/backup.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -export PATH=$PATH:/usr/bin:/usr/local/bin:/bin -# Get timestamp -: ${BACKUP_SUFFIX:=.$(date +"%Y-%m-%d-%H-%M-%S")} -readonly tarball=$BACKUP_NAME$BACKUP_SUFFIX.tar.gz - -# Create a gzip compressed tarball with the volume(s) -tar czf $tarball $BACKUP_TAR_OPTION $PATHS_TO_BACKUP - -# Create bucket, if it doesn't already exist -BUCKET_EXIST=$(aws s3 ls | grep $S3_BUCKET_NAME | wc -l) -if [ $BUCKET_EXIST -eq 0 ]; -then - aws s3 mb s3://$S3_BUCKET_NAME -fi - -# Upload the backup to S3 with timestamp -aws s3 --region $AWS_DEFAULT_REGION cp $tarball s3://$S3_BUCKET_NAME/$tarball - -# Clean up -rm $tarball diff --git a/restore.sh b/restore.sh deleted file mode 100755 index 35ce640..0000000 --- a/restore.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Find last backup file -: ${LAST_BACKUP:=$(aws s3 ls s3://$S3_BUCKET_NAME | awk -F " " '{print $4}' | grep ^$BACKUP_NAME | sort -r | head -n1)} - -# Download backup from S3 -aws s3 cp s3://$S3_BUCKET_NAME/$LAST_BACKUP $LAST_BACKUP - -# Extract backup -tar xzf $LAST_BACKUP $RESTORE_TAR_OPTION diff --git a/tutum.yml b/tutum.yml deleted file mode 100644 index 35837f0..0000000 --- a/tutum.yml +++ /dev/null @@ -1,13 +0,0 @@ -dockup: - image: 'tutum/dockup:latest' - autodestroy: always - environment: - - AWS_ACCESS_KEY_ID= #MUST CHANGE THIS - - AWS_SECRET_ACCESS_KEY= #MUST CHANGE THIS - - AWS_DEFAULT_REGION=us-east-1 #OPTIONALLY CHANGE THIS - - BACKUP_NAME=backup #OPTIONALLY CHANGE THIS - - PATHS_TO_BACKUP=/first/path/here /second/path/here #MUST CHANGE THIS - - S3_BUCKET_NAME=dockup-backups #OPTIONALLY CHANGE THIS - volumes_from: - - serviceA #MUST CHANGE THIS - - serviceB.stack1 #MUST CHANGE THIS