Can You Use Rsync in Windows 10?
Rsync (Remote Sync) is a Linux/Unix based utility for data backup and synchronization both locally and remotely. Using Rsync command, you can sync files and directories across directories, disks or networked computers.
In Windows 10, you might have the same demand - copy files from one directory to another local directory, sync files from local machine to network server or vice versa, as thus you may want to use Rsync in Windows 10. But can you really do it?
Linux is not hosted by Microsoft, so to run Linux command on Windows 10, you need to do some preparations first, some of them may be complicated and time consuming. Therefore, you could also consider using file sync software in Windows 10 or Windows 11 as Rsync alternative.
How to Run Rsync Command in Windows 10
There are several approaches to run Linux commands in Windows 10, one is to dual boot Linux and Windows, which allows you to choose which system to boot on startup, but it might be too much trouble especially when you are not trying to use Linux frequently.
Therefore, it’s more recommended to install Windows Subsystem for Linux (WSL) on your computer. It works as a Windows utility and enables you to run Linux distribution in command line mode, which is a relatively easy way to use Windows 10 Rsync, and applies to other Linux utilities as well. But if you don't want to install WSL, you can try running Rsync with Git Bash.
Here’s a further explanation to the 2 approaches:
♦ Method 1- Install WSL: Follow this WSL Installation Guide provided by Microsoft to install Windows Subsystem for Linux on your Windows 10 computer. The detailed steps depend on your system versions.
If you are running Win10 version 2004 and higher or Win11: You just need to open a command window (PowerShell or Command Prompt) as administrator, type the following command and press Enter:
This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install the Linux distribution for you. You can use WSL after restarting the computer.
The installed Linux distribution is Ubuntu by default. This can be changed using the -d flag.
- To change the distribution installed, enter: wsl --install -d [Distribution Name]. Replace [Distribution Name] with the name of the distribution you would like to install.
- To see a list of available Linux distributions available for download through the online store, enter: wsl --list --online or wsl -l -o.
- To install additional Linux distributions after the initial install, you may also use the command: wsl --install -d [Distribution Name].
If you are running older versions: You need to take a few more steps to manually install WSL. First, enter this command in PowerShell as Administrator:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Then you can either update to WSL 2 or continue using WSL 1. For the latter, you can now select a Linux distribution in Microsoft Store. Available options include Ubuntu, SUSE, Debian, Fedora, Pengwin, etc.
The first time you launch the Linux distribution, you'll be asked to wait for a few minutes till the files being stored on your computer. Also, you need to create a user account with password for the Linux distribution.
♦ Method 2 - Install Git for Winodws: In addition to installing WSL and Linux distribution, you can also try using Rsync in Windows 10 by installing Git for Windows, which allows you to run Rsync command with Git Bash.
The next step is to move extracted files to corresponding destination. For example:
- \rsync-3.2.2-1\usr\bin → C:\Program Files\Git\usr\bin
- \rsync-3.2.2-1\usr\lib → C:\Program Files\Git\usr\lib
- \rsync-3.2.2-1\usr\share → C:\Program Files\Git\usr\share
Then you should be able to use Rsync command in Windows 10 via Git Bash.
There's also a packaging of Rsync for Windows, called cwRsync. You can use it for remote file backup and sync in Windows 10 as well. But the free version of cwRsync Server is discontinued and the last free version is no longer directly available. For more details, you could view its official site.
Rsync Alternative in Windows 10 to Backup and Sync Files
As shown above, it’s not easy to install Rsync for Windows 10 even with the simplified approach. If you don’t have to use this utility and are open to other options, maybe a Windows based program could save you a lot of hassle.
Then, how about the built-in approaches in Windows?
- The legacy Backup and Restore utility takes a slow and error-prone procedure. It also lacks some options to perform data backup flexibly.
- With File History, you can auto backup folders with a simple setup, which seems convenient, but the supported storage locations are very limited, and in Windows 11, you are not allowed to add personal folders.
- Also, none of the tools enables you to sync files and directories in real time.
For these reasons, you may find it difficult to satisfy your backup and sync needs with Windows, even in the latest system. So I prefer to use a handy tool like AOMEI Backupper Standard as Rsync Windows alternative.
◆ This freeware supports Windows 11/10/8/7/XP/Vista, and the operation is really simple within an intuitive GUI.
◆ It contains both Backup and Sync features to meet your different data protection and transferring needs.
◆ During setup, you can select source or target path as internal/external hard drive, network/NAS, cloud drive, USB. Thus you can easily sync local drive with network/cloud drive, sync NAS with cloud, sync NAS to NAS, etc.
◆ You can set up a schedule to autorun backup or sync task on regular basis, perform incremental or differential backup to copy only changed files.
◆ There's also a specialized Server edition that provides all the features for Windows Server users. You can check edition comparison for details.
To try it out, you could download and install the completely free Standard version:
How to sync files in Windows 10 computer to cloud drive:
Step 1. Download and launch the Rsync Windows alternative, switch to Sync tab and select Basic Sync.
Step 2. Edit Task Name based on your need. Click Add Folder to select the folder you want to sync. You can repeat this process to add multiple folders.
Step 3. Choose a destination path. To specify a network share/NAS or cloud service, you could click the small triangle beside the selection box and choose Add Share or NAS Devices or Select a cloud drive accordingly.
Step 4. (Optional) Click Schedule Sync to automatically execute the task based on daily, weekly, or monthly mode.
Step 5. Click Start Sync to begin file synchronization.
That’s it. After creating a scheduled sync task, you don’t need to set it up again. It will auto run in the background without disturbing the job you are doing.
To better meet your needs, you can also create multiple backup and sync tasks at the same time, and manage them in Home tab easily.
As a handy command in Linux, Rsync is possible to be used in Windows 10, but the process is complicated and time-consuming. To back up and sync files locally and remotely, you could also use AOMEI Backupper in Windows 10 as a Rsync alternative.
In addition to the above-mentioned features, AOMEI Backupper integrates a Clone module allowing you to clone a disk, and therefore migrate HDD to SSD, move OS to another hard drive without reinstalling, or even clone larger drive to smaller drive, etc.