github.com/mckael/restic@v0.8.3/docker/README.md (about)

     1  # Docker image
     2  
     3  ## Build
     4  
     5  From the root of this repository run:
     6  
     7  ```
     8  ./docker/build.sh
     9  ```
    10  
    11  image name will be `restic/restic:latest`
    12  
    13  ## Run
    14  
    15  Set environment variable `RESTIC_REPOSITORY` and map volume to directories and
    16  files like:
    17  
    18  ```
    19  docker run --rm -ti \
    20      -v $HOME/.restic/passfile:/pass \
    21      -v $HOME/importantdirectory:/data \
    22      -e RESTIC_REPOSITORY=rest:https://user:pass@hostname/ \
    23      restic/restic -p /pass backup /data
    24  ```