6

I would like to backup the entire content of my Raspberry Pi SD Card on linux PC. I have found online many tutorials that suggest to use dd to perform the operation. However my SD Cards have a wide free space that doesn't require to be saved on backup, that is why I am searching for an efficient alternative to dd that would not backup free space.

Do you have any idea of such alternative software that could do this ?

Thank you in advance.

Edit : When I say I want to perform a backup, I mean I want to make a copy of the entire OS installed in the SD Card plus personnal data installed on. When I restore the backup on another SD Card, I should get a clone of the initial SD Card. Furthermore, the backup should be done with the Raspberry shutdown and the SD Card plugged in my PC.

  • Define "backup". This means different things to different people. Also try reading the hundreds of posts on this site. – Milliways Jul 13 '17 at 7:48
6

There are at least two options to create bootable mSD clones, depending on whether you prefer a UI or the terminal:

  1. pi clone which gets installed alongside with the Pixel desktop.
  2. the rpi-clone script from https://github.com/billw2/rpi-clone, which does roughly the same job, but without any UI. Clone the GitHub repository, and chmod u+x rpic-clone/rpi-clone. Then ...
    • run sudo rpi-clone/rpi-clone -f sda the first time; this creates the necessary partitions and does a full rsync to ensure that you get a workable booting copy.
    • subsequent delta updates: sudo rpi-clone/rpi-clone sda.

Replace sda with your particular SD card reader/writer.

I'm solely using the rpi-clone script for many months now and I never had any issues. The only caveat: don't do a delta update to an mSD with an existing, different OS setup. Just use the -f option to ensure that you get a working clone in this case.

0

Since I'm not sure if it's what you're looking for, I was hoping to make this a comment instead of an answer but don't have enough (points?), anyways I've been taking the sd card out of pi putting it in a usb card reader/writer, then using win32diskimager to create an image from it.

0

raspiBackup is able to save only the used space even if you use a dd backup. Just read FAQ #16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.