Does an S3 sync to a particular bucket

Fred Damstra (Macbook 2015) b495821786 Update to 0.2 for x64 2 years ago
.gitignore 64c4bfab4a Hyphens are superior 2 years ago
Dockerfile b495821786 Update to 0.2 for x64 2 years ago
Jenkinsfile d75e42f6de Tags with build number 2 years ago
LICENSE 163ed904b8 Initial commit 2 years ago
README.md c13e9180ed Triggering build 2 years ago
aws-backup.sh f0f6e55a62 Date the logs 2 years ago
k8s.aws-backup.yaml f20aab6028 Keep logs for a bit 2 years ago
kaniko-aws-backup.yaml f8d25d606b More reasonable dockerfile 2 years ago

README.md

aws-backup

Sync a source directory to s3 in aws

Mount a volume to /source

This is what you want to backup.

Create a set of environment variable secrets

kubectl create secret generic aws-creds \
  --from-literal=AWS_ACCESS_KEY_ID=BLAH \
  --from-literal=AWS_SECRET_ACCESS_KEY=BLAH
kubectl create secret generic update-route53 \
  --from-literal=ZONEID=A1B2C3D4 \
  --from-literal=RECORDSET=host.example.com

you must set the following env variables

DEST_S3 the destination URL to sync to. s3:// expected.

AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION