# Rsync

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/idea/llms.txt).

> **TL;DR**
> `文件 | 设置 | 工具 | Rsync`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 工具 | Rsync`  适用于 macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) !["设置"图标](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)
>
>
>
> 必需插件：  FTP/SFTP/WebDAV Connectivity

使用此页面配置 [Rsync](https://rsync.samba.org) 的设置，该设置有助于在 [远程 SFTP 服务器配置](creating-a-remote-server-configuration.html) 中下载、上传和同步文件。

* 在 macOS 和 Linux 上， `rsync` 和 `ssh` 工具已预安装，其路径会自动填充。

* 在 Windows 上，需要先手动安装 [Cygwin](https://www.cygwin.com)，并同时安装 `rsync` 和 `openssh` 软件包。 这些工具的可执行文件通常位于 `<Cygwin installation>\bin` 文件夹中。

> **Note:**
> Rsync 用于 [文件的下载和上传（包括自动上传）](uploading-and-downloading-files.html)，以及已部署的文件和文件夹与其本地版本之间的 [同步](comparing-deployed-files-and-folders-with-their-local-versions.html)。 远程主机上的文件删除和导航仍通过 SFTP 完成。

|  条目  |  描述  |
| --- | --- |
|    Rsync 可执行文件路径    |  在此字段中，提供  `rsync`  可执行文件的路径。  |
|    Rsync 选项    |     如果有必要，使用此字段覆盖 Rsync 命令行参数。       默认情况下，使用  `-zar`  选项，因此 Rsync 将压缩传输的数据（  `z` ）、保留传输文件和文件夹的权限、所有权和时间戳（  `a` ），并递归到子目录（  `r` ）。       有关可用选项的完整列表，请参阅 [Rsync 文档](https://linux.die.net/man/1/rsync)。     |
|    Shell 可执行文件路径    |  在此字段中，提供  `ssh`  可执行文件的路径。  |
|    测试连接    |  点击此按钮以验证提供的设置，并确保 IntelliJ IDEA 能够正确与 Rsync 进行通信。  |

## See also

### 过程

[将文件部署到服务器](deploying-applications.html) [自定义上传和下载](customizing-upload.html)

### 参考

[部署](settings-deployment.html)

