Hi I have a Raspberry Pi and would like to do an incremental back of the pi to another PC. Below is one method I found.
Install WSL/Ubuntu on the windows PC.
Change the directory to /mnt/c/ on the WSL PC (Essentially in the C:\ of the windows PC)
Run the following command (where 192.168.1.101 is the pi's ip address, and pi_userid is self- explanatory).
ssh pi_userid@192.168.1.101 "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=pibackup.gz
It takes about 40 minutes on a home network to backup 32GB of pi's content. It gets compressed to 1.3GB .gz file on the Windows PC. Actual used space on the SD card was 3.3GB (sudo du -hs / or df -h /).
This creates a file that I need for a backup and the .gz file can be used the raspberry pi imager to write to another SD card. Question is: Is there a way to do an incremental backup?