A rsyncd server in Docker. You know, for moving files.
Start a server
docker run \
--name rsync-server \
-p 8000:8873 \
-p 9000:22 \
-e USERNAME=user \
-e PASSWORD=pass \
public.ecr.aws/n0k2r8k8/rsyncd:latestWarning If you are exposing services to the internet be sure to change the default password from pass by settings the environmental variable PASSWORD.
Please note that /volume is the rsync volume pointing to /data. The data
will be at /data in the container. Use the VOLUME parameter to change the
destination path in the container. Even when changing VOLUME, you will still
rsync to /volume. It is recommended that you always change the default password of pass by setting the PASSWORD environmental variable, even if you are using key authentication.
rsync -av /your/folder/ rsync://user@localhost:8000/volume
Password: pass
sending incremental file list
./
foo/
foo/bar/
foo/bar/hi.txt
sent 166 bytes received 39 bytes 136.67 bytes/sec
total size is 0 speedup is 0.00Variable options (on run)
USERNAME- thersyncusername. defaults touserPASSWORD- thersyncpassword. defaults topassVOLUME- the path forrsync. defaults to/dataALLOW- space separated list of allowed sources. defaults to10.0.0.0/8 192.168.0.0/16 172.16.0.0/12 127.0.0.1/32.
docker run -p 873:8873 public.ecr.aws/n0k2r8k8/rsyncd:latestdocker run -p 873:8873 -v /your/folder:/data public.ecr.aws/n0k2r8k8/rsyncd:latestdocker run \
-p 873:8873 \
-v /your/folder:/data \
-e USERNAME=admin \
-e PASSWORD=mysecret \
public.ecr.aws/n0k2r8k8/rsyncd:latestdocker run \
-p 9999:8873 \
-v /your/folder:/data \
-e USERNAME=admin \
-e PASSWORD=mysecret \
public.ecr.aws/n0k2r8k8/rsyncd:latestrsync rsync://admin@localhost:9999
volume /data directorydocker run \
-p 9999:8873 \
-v /your/folder:/myvolume \
-e USERNAME=admin \
-e PASSWORD=mysecret \
-e VOLUME=/myvolume \
public.ecr.aws/n0k2r8k8/rsyncd:latestrsync rsync://admin@localhost:9999
volume /myvolume directorydocker run \
-p 9999:8873 \
-v /your/folder:/myvolume \
-e USERNAME=admin \
-e PASSWORD=mysecret \
-e VOLUME=/myvolume \
-e ALLOW=192.168.24.0/24 \
public.ecr.aws/n0k2r8k8/rsyncd:latest