A Docker container that provides a home-dir backups to an S3 bucket
Provision a Confluence Host
Container uses one environment variable:
BUCKET_URL defines the URL of the S3 bucket + path where the backups are to be stored
The following will launch a 1.0 version of the container on a Confluence host.
The resulting container will be named backup and will save backups from a Confluence host running in a container named confluence to the bucket s3://tts-sets-team/confluence/dev/home-dir
sudo docker run -d -e "BUCKET_URL=s3://tts-sets-team/confluence/dev/home-dir" --volumes-from confluence --name backup -it nordstromsets/confluence-backup
Restore a Confluence Host
The container can also be used to restore the home directory of a Confluence host from the s3 bucket used to backup the host (or to backup some other host)
The following will restore the home directory of a Confluence host running in a container named confluence from the bucket s3://tts-sets-team/confluence/test/home-dir.
sudo docker run --volumes-from confluence -it nordstromsets/confluence-backup python restore.py s3://tts-sets-team/confluence/test/home-dir