# 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>
$ 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
$ 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
Bivac plugs onto the Docker socket or the Kubernetes API to detect volumes and back them up, automatically.
Prometheus Support is built-in to easily ship metrics each time bivac runs.
Bivac supports both AWS and Swift as bucket providers.
Bivac uses Restic as backends to give you full control of your backup mode.