container-images/rsyncd/README.md

24 lines
402 B
Markdown
Raw Normal View History

2019-03-19 23:24:55 +00:00
# rsyncd container
2019-03-19 23:30:42 +00:00
basic rsync daemon
2019-03-19 23:24:55 +00:00
## build it
```shell
podman build -t rsyncd .
```
## run it
```shell
cp podman-rsyncd.service /etc/systemd/system/
mkdir -p /etc/podman.d
cat > /etc/podman.d <<EOF
IMAGE_NAME=rsyncd
PODMAN_RUN_ARGS=" -it --rm -v /mnt/data/mydata-rsyncd.conf:/etc/rsyncd.conf:ro -v /mnt/data/mydata/:/data:ro -p 873:873 "
EOF
systemctl enable --now podman-rsyncd.service
```