On Thu, Oct 29, 2020 at 11:20:57AM +0800, Cui Yili wrote:
[why] Modify data upload directory to upload qemu image. qemu image uploaded by the user, used for testing
[how] Change the rsync.conf configuration and docker operating parameters.
Signed-off-by: cuiyili 2268260388@qq.com
container/rsync-server/rsyncd.conf | 6 ++++-- container/rsync-server/start | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/container/rsync-server/rsyncd.conf b/container/rsync-server/rsyncd.conf index 528e8bd..dd8f128 100644 --- a/container/rsync-server/rsyncd.conf +++ b/container/rsync-server/rsyncd.conf @@ -1,10 +1,12 @@
uid = lkp gid = lkp +port = 11387 use chroot = no +log file=/var/log/rsync.log
-[result] -path = /result +[upload] +path = /srv/initrd/qemu-image read only = no max connections = 200 refuse options = delete
delete space after and before '=' E.g: path = /srv/initrd/qemu-image => path=/srv/initrd/qemu-image
Thanks, Liushaofei
diff --git a/container/rsync-server/start b/container/rsync-server/start index 4124192..6fa3de2 100755 --- a/container/rsync-server/start +++ b/container/rsync-server/start @@ -9,9 +9,9 @@ cmd=( docker run -id --name=rsync_server
- -v /srv/result:/result
- -v /srv/initrd/qemu-image:/srv/initrd/qemu-image -v /etc/localtime:/etc/localtime:ro
- -p 873:873
- -p 11387:11387 rsync_server:latest
)
-- 2.23.0