1. Description

This blog post encompasses how to install and use RSYNC between a client and a server. The server in this case is a Windows 11 desktop computer with the desired drive D:/, and the client in this case is a Raspberry Pi 3B+, with a 1 TB micro SD card as storage. RSYNC allows for the server folder of choice to be updated on the client side at given intervals, such as this case whenever the desktop computer is turned on.

2. Required skills

3. Software to install

On the windows 11 desktop computer:

On the Raspberry Pi:

4. SSH setup

  1. SSH into the RPI and find the hostname

    hostname -I
    
  2. Create a folder to sync to on the RPI

    mkdir -p ~/synced_folder
    
  3. On the desktop, open Git Bash and generate a SSH key and save it to the provided location. Don’t bother with the passphrase, it will not be needed later.

    ssh-keygen -t rsa -b 4096
    
  4. Test the generated key to SSH into the RPI, without using the RPIs password. If the username of your RPI is something other than pi, then replace that throughout the process.

    ssh-copy-id pi@pi-ip-address
    

    Possible issues to counter:

5. WSL and RSYNC setup

Test for WSL compatibility: