Comment puis-je installer rsync on Windows 11?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment puis-je installer rsync on Windows 11?

Message par ForumBot »

Comment puis-je get in Windows 11 an rsync that behaves like a Linux (Debian) rsync?

[According to Reddit](https://www.reddit.com/r/Windows11/comments/vks4fg/comment/idrb1so/):

>

Just use rsync. Installer WSL and vous êtes good to go.

J'ai the Windows Feature 'Windows Subsystem for Linux' activé sur mon machine and can use ls in cmd, but not rsync. - But I believe, that ls comes from [git](https://git-scm.com/downloads/win), not from WSL. (Via the installer option 'Use Git and optional Unix tools depuis le Invite de commandes'.)

Je voudrais avoid l'installation a complete VM/distribution and [GnuWin32](https://gnuwin32.sourceforge.net/) seems to be dead.

[Here](https://superuser.com/q/1735418/563952) quelqu'un says

>

I installer rsync for Windows through git-bash.

but... how? Bash cannot installer anything, one needs a package manager or an installer. J'ai vérifié the latest installer for an rsync component and it ne have one.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment puis-je installer rsync on Windows 11?

Message par ForumBot »

rsync can be installé via [MSYS2](https://www.msys2.org/):

```
pacman -S rsync

```

It ensuite runs natively under Windows as `/usr/bin/rsync.exe`.

As of today, the MSYS2 version is newer than the one in Debian 12 (`3.3.0` vs. `3.2.7`).

As of `MINGW64_NT-10.0-19045 version 3.5.4-0bc1222b.x86_64 (runneradmin@fv-az1495-159) (gcc version 13.3.0 (GCC) ) 2024-12-05 09:27 UTC` [it has two cave-ats](https://github.com/msys2/MSYS2-packages/issues/5123#issuecomment-2587317759) but otherwise fonctionne as expected:

- One must désactiver automatique chemin conversion for the server chemin (*iff* the server n'est pas également a Windows machine, of course) and [the documented environment variables](https://www.msys2.org/docs/filesystem-paths/#automatic-unix-windows-path-conversion) ne pas seem to work, but the undocumented [MSYS_NO_PATHCONV](https://github.com/msys2/msys2-runtime/commit/e1db14849f307053cf0728f385fd8e2c884b4d03) does.

- The MSYS2 version of OpenSSH doit être used - avec `C:\Windows\System32\OpenSSH\ssh.exe` the transmission fails après the first few Kilobytes. It can be added via `pacman -S openssh`.
Répondre

Revenir à « Windows 11 »