HDegroote / drives-mirror-docker

Docker for running drives' mirror command with --live option

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drives Mirror Docker

Mirror a directory into a hyperdrive with live updates.

Useful for continuous backups, keeping files in sync across machines, and providing file access to other people.

This is a thin rapper around the drives CLI.

The docker image lives here

Usage

docker run --mount type=bind,source=<dir-to-mirror>,destination=/home/mirror/publish,readonly --mount type=volume,source=mirror-volume,destination=/home/mirror/data --network host hdegroote/dir-to-hyperdrive-mirror

Replacing <dir-to-mirror> with the path of a directory on your own machine.

--network host is optional: it just gets rid of some edge cases in the connectivity layer (hyperdht)

The hyperdrive's public key will be logged. The key will persist across restarts (assuming the /home/mirror/data uses a volume)

About

Docker for running drives' mirror command with --live option

License:Apache License 2.0


Languages

Language:Dockerfile 53.8%Language:Shell 46.2%