vscode-rsync icon indicating copy to clipboard operation
vscode-rsync copied to clipboard

"zz" in Rsync flags becomes "z"

Open chrjorgensen opened this issue 6 years ago • 4 comments

Hi.

I connect to a server where rsync has an external zlib, and the default flag "z" doesn't work. But when I try to use "zz" instead, the double-"z" becomes single "z".

I can't use --compress - the server will only compress rsync when I specify "zz" in the flags.

chrjorgensen avatar Feb 12 '19 13:02 chrjorgensen

Can you post a sanitized version of your settings?

thisboyiscrazy avatar Feb 12 '19 18:02 thisboyiscrazy

Sure - the settings.json is (clipped):

    "sync-rsync.useWSL": true,
    "sync-rsync.sites": [
        {
            "name":"xxxxxxxxxxxxxxxxxx",
            "remotePath":"user@host:/home/Develop/",
            "localPath": "/mnt/c/Data/Develop/",
            "exclude": [
                "*",
                ".pip/",
                ".npm/"
            ],
            "include": [
                "php/***",
                "python/***",
                "node/***"
            ],
        },
    ],
    "sync-rsync.flags": "rlptvzz",
    "sync-rsync.showProgress": false,
    "sync-rsync.autoShowOutput": true,
    "sync-rsync.autoHideOutput": true
}

and the terminal output is

Tue Feb 12 2019 22:56:06 GMT+0100 (Rom, normaltid) syncing
> rsync -rlptvz --include=php/*** --include=python/*** --include=node/*** --exclude=* --exclude=.pip/ --exclude=.npm/ user@host:/home/Develop/ /mnt/c/Data/Develop/ 
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(1567) [server=3.1.2]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(235) [Receiver=3.1.2]

I tried "--compress" as well - didn't work either...

Please note that I use rsync in WSL - could it be the problem?

chrjorgensen avatar Feb 12 '19 22:02 chrjorgensen

This seems to be a problem with https://github.com/mattijs/node-rsync I use to build the flags. I will file a bug with them.

thisboyiscrazy avatar Mar 13 '19 13:03 thisboyiscrazy

I'm using v0.36.0. Same problem occurs. Is here any solutions?

simryang avatar Apr 21 '21 01:04 simryang