0

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.

  1. Install WSL/Ubuntu on the windows PC.

  2. Change the directory to /mnt/c/ on the WSL PC (Essentially in the C:\ of the windows PC)

  3. 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?

SEU
  • 139
  • 4
  • 1
    Does this answer your question? [Comparison of backup tools](https://askubuntu.com/questions/2596/comparison-of-backup-tools) `dd` is probably the most unwieldy, awkward way to perform regular backup tasks. I'd look into rsync or backup2l – Nmath Dec 18 '22 at 02:04

0 Answers0