[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..6494bc8 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/result/upload/ read only = no max connections = 200 refuse options = delete diff --git a/container/rsync-server/start b/container/rsync-server/start index 4124192..b24605b 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/result/upload:/srv/result/upload -v /etc/localtime:/etc/localtime:ro - -p 873:873 + -p 11387:11387 rsync_server:latest )
On Mon, Nov 02, 2020 at 04:13:37PM +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..6494bc8 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
log file => log_file ? add space before and after '=' ? Thanks, Liushaofei
-[result] -path = /result +[upload] +path = /srv/result/upload/ read only = no max connections = 200 refuse options = delete diff --git a/container/rsync-server/start b/container/rsync-server/start index 4124192..b24605b 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/result/upload:/srv/result/upload -v /etc/localtime:/etc/localtime:ro
- -p 873:873
- -p 11387:11387 rsync_server:latest
)
-- 2.23.0
diff --git a/container/rsync-server/rsyncd.conf b/container/rsync-server/rsyncd.conf index 528e8bd..6494bc8 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
log file => log_file ?
This is a configuration file, not script.
'log file' maby is ok.
Thanks, Chenglong
add space before and after '=' ? Thanks, Liushaofei