Public | Automated Build

Last pushed: 9 months ago
Short Description
Docker image for Duplicity with Azure support.
Full Description

alpine-duplicity-azure

Docker image for Duplicity with Azure support

This image extends wernight/docker-duplicity and adds the Microsoft Azure Python client. With this, we can directly refer to an Azure container in the Duplicity command through azure://my-container-name. Two environment variables should be added also for authentication:

  • AZURE_ACCOUNT_NAME
  • AZURE_ACCOUNT_KEY

Usage

To perform a backup:

docker run \
        --user $UID \
        -e PASSPHRASE=$PASSPHRASE \
        -e AZURE_ACCOUNT_NAME="$ACCOUNT_NAME" \
        -e AZURE_ACCOUNT_KEY="$ACCOUNT_KEY" \
        -v $PWD/.cache:/home/duplicity/.cache/duplicity \
        -v $PWD/.gnupg:/home/duplicity/.gnupg \
        -v ~:/data:ro \
        nickdecooman/alpine-duplicity-azure \
        duplicity --full-if-older-than=1W --allow-source-mismatch /data azure://$CONTAINER_NAME

Note: You can also run Duplicity as root in case it has not all the necessary rights. Therefore, change --user $UID to --user root.

See also

Docker Pull Command
Owner
nickdecooman

Comments (0)