pschiffe / docker-borg

Docker image with BorgBackup client utility and sshfs support
https://hub.docker.com/r/pschiffe/borg/
MIT License
51 stars 18 forks source link

Can not init backup #5

Closed TribuneX closed 6 years ago

TribuneX commented 6 years ago

Hello,

I am trying to run a backup with your borg container as described in the Readme with the following command:

docker run \
  -e SSHFS='user@hostname:/path/to/repo' \
  -e SSHFS_PASSWORD=my-ssh-password \
  -e BORG_PASSPHRASE=my-secret-pw \
  -e BACKUP_DIRS=/borg/data \
  -e COMPRESSION=lz4 \
  -e PRUNE=1 \
  -v borg-cache:/root/.cache/borg \
  -v mariadb-data:/borg/data/mariadb:ro \
  -v worpdress-data:/borg/data/wordpress:ro \
  --cap-add SYS_ADMIN --device /dev/fuse --security-opt label:disable \
  --name borg-backup \
  pschiffe/borg

There seems to be some issue with borg init, since it gives me this error message:

usage: borg init [-h] [--critical] [--error] [--warning] [--info] [--debug]
                 [--debug-topic TOPIC] [-p] [--log-json] [--lock-wait SECONDS]
                 [--show-version] [--show-rc] [--umask M] [--remote-path PATH]
                 [--remote-ratelimit RATE] [--consider-part-files]
                 [--debug-profile FILE] -e MODE [--append-only]
                 [--storage-quota QUOTA]
                 [REPOSITORY]
borg init: error: the following arguments are required: -e/--encryption

Any idea how I can fix this?

pschiffe commented 6 years ago

@TribuneX wait for the build to complete, update image and try again please.