Bivac

/bee-vac/ French word imported by Swiss mercenaries from the German root bewachen (to keep guard): an extra guard added to a military camp at night to increase its safety.

GitHub stars Docker Pulls By Camptocamp

Install and use locally

# install from source
$ go get github.com/camptocamp/bivac

# launch locally to backup local Docker volumes
$ bivac \
  -u s3://s3-eu-west-1.amazonaws.com/<my_bucket>/<my_dir> \
  --aws-access-key-id=<my_key_id> \
  --aws-secret-key-id=<my_secret_key>

Launch as a Docker Container

$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro  --rm -ti \
   -e BIVAC_TARGET_URL=s3://s3-eu-west-1.amazonaws.com/<my_bucket>/<my_dir> \
   -e AWS_ACCESS_KEY_ID=<my_key_id> \
   -e AWS_SECRET_ACCESS_KEY=<my_secret_key> \
     camptocamp/bivac

Launch on Kubernetes using Helm

$ git clone https://github.com/camptocamp/bivac
$ cat values.yaml
schedule: "0 4 * * *"

envVars:
  - name: BIVAC_TARGET_URL
    value: s3://<bucket>/<path>
  - name: AWS_ACCESS_KEY_ID
    value: <AWS_ACCESS_KEY_ID>
  - name: AWS_SECRET_ACCESS_KEY
    value: <AWS_SECRET_ACCESS_KEY>
  - name: RESTIC_PASSWORD
value: <RESTIC_PASSWORD>
$ helm install -f values.yaml ./bivac/charts/camptocamp/bivac

Features

Bivac allows to backup Container volumes using Restic.

Docker and Kubernetes Support

Bivac plugs onto the Docker socket or the Kubernetes API to detect volumes and back them up, automatically.

Prometheus Ready

Prometheus Support is built-in to easily ship metrics each time bivac runs.

Multiple Clouds

Bivac supports both AWS and Swift as bucket providers.

Uses Restic

Bivac uses Restic as backends to give you full control of your backup mode.

Other projects

We love to contribute Open Source projects at Camptocamp.
Here is a list of some of our most useful tools

Terraboard

Terraboard

A Web dashboard to inspect and query Terraform states

Puppet Modules

Puppet Modules

Camptocamp’s Puppet Modules

FacterDB

FacterDB

A Database of OS facts provided by Facter

Contact us!

Are you missing features? Would you like consulting, training or other services? Contact us at info@camptocamp.com!