Do you backup your Pi?

Commissario
Joined
16 Oct 2002
Posts
343,369
Location
In the radio shack
I've always known that by not backing up my Pis, I'm sitting on a bit of a time bomb and that's why I'm really pleased to discover this utility.

It's dead easy to install but basically you do the following:

If you're using a version of Raspbian Lite, you may need to install git first

sudo apt-get install git

Then install the utility

git clone https://github.com/billw2/rpi-clone.git
cd rpi-clone
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin

Usage is very simple and is described in great detail on the GitHub page I linked to above.

I've tested this on a Pi Zero running Buster and it works really well. I plugged a micro SD card in via a USB card reader and ran one command:

sudo rpi-clone sda

Hit 'enter' at the two prompts and that was it. I shut the Pi down, took the micro SD card out of the card reader, plugged it into the Pi and booted from it. Job done.

I've ordered a bunch of very small USB micro SD card readers from eBay and then each of my Pis will have one of them plugged in along with an SD card. I'll run the initial backup manually and then set it up as a cron job to run with the -U switch every night (or perhaps just a couple of times a week). That way, if I get a card failure, all I'll need to do is take the SD card out of the reader, plug it into the Pi, plug a new SD card into the reader, reboot and run a manual backup.

It works with Buster so despite being a couple of years old, it'll work with Stretch and Jessie as well.

Very cool!
 
Back
Top Bottom