Drillster / drone-rsync

Drone plugin for syncing files and directories to remote servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rsync compatibility with external zlib

v4rakh opened this issue · comments

Hi,
when using latest ArchLinux together with the docker image for deploying something I get

Status: Image is up to date for drillster/drone-rsync:latest
$ rsync -az  -r --del -e 'ssh -p 2222 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' ./_site/ user@host:~/htdocs/website/ ...
rsync: This rsync lacks old-style --compress due to its external zlib.  Try -zz.
rsync error: syntax or usage error (code 1) at main.c(1578) [server=3.1.3]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]

This seems to be related to ArchLinux using a newer and patched version of zlib and not the bundled one from rsync. Could you maybe think about updating the base of alpine and see if the other rsync package there fixes this compatibility error? See https://www.archlinux.org/news/rsync-compatibility/

Ok, I solved it with adding PLUGIN_ARGS=-zz.