Backup SD card online to external USB card

Piclone (gui) only backups the actual data -


To run from command line

Copy this script

On raspberry pi, run

sudo nano

paste in the text

cntrl-x then y to save and exit

sudo chmod 777


I'm using a Sandisk external SD card and USB micro SD card reader

16gb Sandisk class 10 Micro SD card -

Kingston Micro SD card reader USB -


Run lsblk

sda           8:0    1 14.9G  0 disk
├─sda1        8:1    1 43.2M  0 part
└─sda2        8:2    1 14.8G  0 part
mmcblk0     179:0    0  7.5G  0 disk
├─mmcblk0p1 179:1    0 43.2M  0 part /boot
└─mmcblk0p2 179:2    0  7.4G  0 part /



To run


sudo ./ /dev/sda /dev/macblk0





Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>