image is available on docker hub

This commit is contained in:
Adam Grahovac
2016-02-23 14:56:47 +01:00
parent b8ef172770
commit 4e72040554

View File

@@ -37,9 +37,6 @@ and attach it to the User created in Step 2. Replace myBackupBucket with the nam
Step 4. Copy a public gpg key into a folder that can be mount by the docker container later. It is going to be used to encrypt your backup. Write down the Emailadress of the gpg key and don't lose it. Step 4. Copy a public gpg key into a folder that can be mount by the docker container later. It is going to be used to encrypt your backup. Write down the Emailadress of the gpg key and don't lose it.
docker build -t backup-gpg-s3 .
Step 5. Run the container Step 5. Run the container
```bash ```bash
@@ -54,7 +51,7 @@ docker run -d \
--env "AWS_ACCESS_KEY_ID=myAWSAccessKey" \ --env "AWS_ACCESS_KEY_ID=myAWSAccessKey" \
--env "AWS_SECRET_ACCESS_KEY=myAWSSecretAccess" \ --env "AWS_SECRET_ACCESS_KEY=myAWSSecretAccess" \
--env "AWS_DEFAULT_REGION=eu-central-1" \ --env "AWS_DEFAULT_REGION=eu-central-1" \
backup-gpg-s3 graho/backup-gpg-s3
``` ```
This container is going to perform a backup every day at 4 am. You can define the backup schedule with ```GPG_RECIPIENT```. This container is going to perform a backup every day at 4 am. You can define the backup schedule with ```GPG_RECIPIENT```.
@@ -132,7 +129,7 @@ docker run -it -rm \
--env "AWS_ACCESS_KEY_ID=\\\\" \ --env "AWS_ACCESS_KEY_ID=\\\\" \
--env "AWS_SECRET_ACCESS_KEY=\\\\" \ --env "AWS_SECRET_ACCESS_KEY=\\\\" \
--env "AWS_DEFAULT_REGION=eu-central-1" \ --env "AWS_DEFAULT_REGION=eu-central-1" \
backup-gpg-s3 bash /restore.sh graho/backup-gpg-s3 bash /restore.sh
``` ```
You will be asked to enter the name of the backup. If your private gpg key has a password you will be asked for it, too. You will be asked to enter the name of the backup. If your private gpg key has a password you will be asked for it, too.