Sign inSign up

hdegroote/mirror

By hdegroote

Updated about 3 years ago

Mirror a folder to a hyperdrive

Image
0

979

hdegroote/mirror repository overview

Mount the directory you wish to mirror in the container, at location /home/mirror/publish.

It is advised to store the /home/mirror/data directory in a volume, to be able to use the same corestore and public key across restarts

Example run command (you will need to modify the source directories):

docker run --mount type=bind,source=/dir/to/mirror,destination=/home/mirror/publish,readonly --mount type=volume,source=mirror-volume,destination=/home/mirror/data hdegroote/mirror:latest

The key of the hyperdrive will be logged.

To download the hyperdrive elsewhere:

drives mirror <key> ./downloadDir

(see https://github.com/holepunchto/drives for the full drives API)

Tag summary

Content type

Image

Digest

sha256:34db6c5da

Size

385.7 MB

Last updated

about 3 years ago

docker pull hdegroote/mirror