Remote backup of Raspberry Pi sd card from Windows

  raspberry-pi, windows

This references details a procedure for backing up the SD card on a running Raspberry Pi from and to a file on another computer (https://johnatilano.com/2016/11/25/use-ssh-and-dd-to-remotely-backup-a-raspberry-pi/)

To do this from a Windows PC it is necessary to install a new "DD tool" for Windows, also referenced above. I’ve done all of this and thought I had the process figured out, the following command run from a Windows CMD window does create a file on my Windows PC, but shows an error message which I can not figure out.

c:WindowsSystem32>ssh [email protected] “sudo dd if=/dev/mmcblk0 bs=1M | gzip -” | dd of=.c:/Users/me/Desktop/rPi_backup.gz –progress

I have run this on my LAN to two different Pi’s (3B and 4B), Here is the output from the later after about 30 minutes:

c:WindowsSystem32>ssh [email protected] “sudo dd if=/dev/mmcblk0
bs=1M | gzip -” | dd of=.c:/Users/me/Desktop/rPi_backup.gz
–progress

rawwrite dd for windows version 0.5. Written by John Newbigin This
program is covered by the GPL. See copying.txt for details
[email protected]‘s password:

11,754,655,23215193+1 records in 15193+1 records out 15931539456 bytes
(16 GB, 15 GiB) copied, 2528.86 s, 6.3 MB/s 11,755,209,216Error
reading file: 109 The pipe has been ended

22959393+0 records in 22959393+0 records out

I got the same Error 109 for both Pi’s. I have checked the SD cards and they are functional, not corrupted nor have any "dirty bits". I have tried to find the error code description, but nothing I see seems to apply to this situation.

Can anyone help me with this problem. I posted it to the above reference, but have not gotten any meaningful replies….RDK

Source: Windows Questions

LEAVE A COMMENT