A simple image to replicate (rsync) two volumes
5.3K
A simple container image that expects two volume mounts "/volume-a"
and "/volume-b" where data is replicated (using rsync) from one to the
other based on an environment variable whose value is either AtoB or BtoA.
When running the image...
/volume-a and /volume-bREPLICATE_DIRECTIONREPLICATE_DELETE to anything other than yes
to avoid wiping the destinationJust run docker..
$ docker build . -t informaticsmatters/volume-replicator:latest
And run typically with something like: -
$ docker run --rm -e REPLICATE_DIRECTION=AtoB \
-v $PWD/a:/volume-a \
-v $PWD/b:/volume-b \
informaticsmatters/volume-replicator:latest
Content type
Image
Digest
sha256:ba9873dcd…
Size
100 MB
Last updated
about 1 month ago
docker pull informaticsmatters/volume-replicator