billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.48k stars 327 forks source link

Q: clone to USB Flash Stick for backup; how to restore? #172

Open chrissv opened 7 months ago

chrissv commented 7 months ago

My apologies if I missed this in the documentation, but I couldn't find it.

In my implementation, instead of using an SD card in a USB-to-SD adapter as the clone destination, I have a regular USB flash stick (just because I have a bunch around). rpi-clone has no problems cloning to the USB flash device.

So what happens when/if I have an SD card failure, and I need to use/restore this cloned USB flash drive to a new SD card? Is there a tool to copy/restore from the USB stick back to an SD card (presumably on another machine, since the RPi isn't running)? Does anything (PARTUUID) need to be fixed up afterwards on the SD card?

framps commented 6 months ago

I don't know for sure - but as far as understand just use rpi-clone to clone the USB stick to a new SD card. Just try it with a new SD card :wink:

chrissv commented 5 months ago

I don't know for sure - but as far as understand just use rpi-clone to clone the USB stick to a new SD card. Just try it with a new SD card 😉

Do you know the command for rpi-clone to use a different source than the booted device? (the "-m" option adds an additional mounted directory to sync, but the root is aways synced)

framps commented 5 months ago

Unfortunately not.