Skip to content

Unable to sync between Windows 11 and Linux using cygwin #131

@samche2000

Description

@samche2000

I can't connect from a Windows 10.0.22621 22H2 to a Linux 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux using cygwin.

My settings for rsync in Visual Studio Code 1.70.2 :

    "sync-rsync.executableShell": "C:\\cygwin64\\bin\\bash.exe",
    "sync-rsync.executable": "/bin/rsync.exe",
    "sync-rsync.cygpath": "C:\\cygwin64\\bin\\cygpath.exe",
    "sync-rsync.flags": "rtv",
    "sync-rsync.onSaveIndividual": true,
    "sync-rsync.onSave": true,
    "sync-rsync.sites": [
        {
            "localPath":"/cygdrive/c/git/CHSGReports/src/",
            "remotePath":"chsg@192.168.1.115:/.docker/glpi/www_plugins/chsgreports/",
        }
    ]

When saving a file, output console :

Tue Oct 25 2022 10:54:29 GMT+0200 (Central European Summer Time) syncing
> /bin/rsync.exe -rtv --progress --exclude=.git --exclude=.vscode /cygdrive/c/git/CHSGReports/src/ chsg@192.168.1.115:/.docker/glpi/www_plugins/chsgreports/

Nothing happen on destination server.

In Cygwyn :

myuser@1-INF-TEC-23 /cygdrive/c/git/CHSGReports/src
$ /bin/rsync.exe -rtv --progress --exclude=.git --exclude=.vscode /cygdrive/c/git/CHSGReports/src/ chsg@192.168.1.115:/.docker/glpi/www_plugins/chsgreports/
chsg@192.168.1.115's password:
sending incremental file list
rsync: [generator] failed to set times on "/.docker/glpi/www_plugins/chsgreports/.": Operation not permitted (1)
./
setup.php
          1,828 100%  410.16kB/s    0:00:00 (xfr#1, to-chk=0/3)

sent 854 bytes  received 56 bytes  140.00 bytes/sec
total size is 2,216  speedup is 2.44
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.4dev]

myuser@1-INF-TEC-23 /cygdrive/c/git/CHSGReports/src

The main difference between rsync in visual studio code and cygwin, rsync ask me password for the user chsg in cygwin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions