Lloyd's Coffee House was the first marine insurance company.
This tools backups Docker volume containers and stores them in a local directory.
To use it, run:
$ docker run \
-v /var/run/docker.sock:/docker.sock \
-v /var/lib/docker/vfs/dir:/var/lib/docker/vfs/dir \
-v /host-backup-location:/backups
tpett/docker-lloyd-local \
container-a container-b container-c...
This will run docker-backup,
gzip a tarball named after the container and put it in BACKUP_DIR
(default "/backup"). By default, the files will be stored for 2 weeks.
You can override this by setting the environment variable
BACKUP_KEEP_DAYS
.
See the original project docker-lloyd if you would like to upload your files to S3.
See docker-backup on how to restore a backup.
The Dockerfile passes command line options to docker-backup by setting the OPTS environment variable. If you need to override/change those, you can set it on the command line:
$ docker run -e OPTS="-addr=/foo/docker.sock" ...