bazwilliams / homebackup

Generic container for backing up local files to AWS S3 using duplicity and duplicity-backup.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This is a Docker container which includes everything needed to run duplicity backed to an AWS S3 bucket with a duplicity-backup.sh wrapper.

Configuration

Create an IAM user with permissions to access the bucket you wish to backup to (see cf-template.yaml for a cloudformation template that creates both a bucket and a user).

Save configuration to a file called secrets.env

DEST=s3://$s3endpoint/$bucketname/$keyprefix
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

Run

Assuming Docker

docker run \
  --env-file=./secrets.env \ 
  -v ${FILES_TO_BACKUP}:/localfiles \
  -v ${LOGGING_FOLDER}:/logs \
  -ti bazwilliams/duplicity-backup

About

Generic container for backing up local files to AWS S3 using duplicity and duplicity-backup.sh


Languages

Language:Shell 100.0%