Sign inSign up

flem/hubicfuse

By flem

•Updated over 9 years ago

Docker image to mount a HubiC data store (using hubicfuse)

Image
1

1.4K

flem/hubicfuse repository overview

⁠HubiC

This Docker image aims to mount a HubiC⁠ data store to backup/restore files. It uses hubicfuse⁠.

The idea is to mount, backup or restore datas and then exits.

Storage of datas into HubiC is in :

  • Normal mode (using rsync tool)
  • Encrypt mode (using duplicity tool)
    • to avoid error (Fatal Error: Backup source host has changed), the container hostname has to be constant.
    • default retention is 2 months

A Dockerfile is also available for the Raspberry Pi since there are specifics rules on this platform (Automated builds fail since Docker Hub currently doesn't support ARM platforms). You can grab that image or build it yourself from Github.

⁠Usage

⁠Inline Help
docker run -ti --rm flem/hubicfuse --help
⁠get token

First, you need to retrieve the token to make /root/.hubicfuse file

docker run -ti --rm flem/hubicfuse --get_token
⁠mount only (/mnt/hubic)
docker run -ti --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           flem/hubicfuse --mount --id XXXX --secret XXXX --token XXXX
⁠backup (normal mode using rsync)
docker run --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           --volume /path/to/mydatas:/mydatas:ro \
           flem/hubicfuse --backup --id XXXX --secret XXXX --token XXXX --hubic_dir default/path/to/backup
⁠restore (normal mode using rsync)
docker run --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           --volume /path/to/mydatas:/mydatas \
           flem/hubicfuse --restore --id XXXX --secret XXXX --token XXXX --hubic_dir default/path/to/backup
⁠backup (encrypt mode using duplicity)
⁠full backup
docker run --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           --volume /path/to/mydatas:/mydatas:ro \
           --hostname MYHOST \
           flem/hubicfuse --backup --id XXXX --secret XXXX --token XXXX --hubic_dir default/path/to/backup \
                          --crypt --passphrase "XXXX" --mode full --retention 2
⁠incremental backup
docker run --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           --volume /path/to/mydatas:/mydatas:ro \
           --hostname MYHOST \
           flem/hubicfuse --backup --id XXXX --secret XXXX --token XXXX --hubic_dir default/path/to/backup \
                          --crypt --passphrase "XXXX" --mode incr --retention 2
⁠restore (encrypt mode using duplicity)
docker run --rm \
           --cap-add SYS_ADMIN \
           --device /dev/fuse \
           --volume /path/to/mydatas:/mydatas:ro \
           --hostname MYHOST \
           flem/hubicfuse --backup --id XXXX --secret XXXX --token XXXX --hubic_dir default/path/to/backup \
                          --crypt --passphrase "XXXX"

Tag summary

Content type

Image

Digest

Size

74.8 MB

Last updated

over 9 years ago

docker pull flem/hubicfuse