Docker data volume container backing up with docker-lloyd
Posted on
I forked docker-lloyd repo for using with IDC Frontier Object Storage and store image in masato/docker-lloyd. It' helpful for me to do scheduling backup statefull containers.
I forked docker-lloyd repo for using with IDC Frontier Object Storage and store image in masato/docker-lloyd. It’ helpful for me to do scheduling backup statefull containers.
Backup Container
$ cd ~/docker_apps $ git clone git@github.com:masato/docker-lloyd.git
I defined .s3cfg explicitly for using modified IDCF’s endpoint.
run
s3cmd --access_key="$ACCESS_KEY" --secret_key="$SECRET_KEY" \ # -c /dev/null $S3CMD_OPTS put "$BACKUPS/$1.tar.gz" $BUCKET -c /.s3cfg $S3CMD_OPTS put "$BACKUPS/$1.tar.gz"$BUCKET rm "$BACKUPS/$1.tar.gz"