raspberrypi-ui / piclone

Utility to back up Pi to an SD card reader
260 stars 62 forks source link

Backup script now preserves the original UUID and label of each partition #26

Closed marques-work closed 3 years ago

marques-work commented 4 years ago

For those of us running in headless mode and using the "lite" distro without a desktop, the backup script is a preferable commandline alternative to the SD Card Copier GUI.

The backup script, unlike the GUI, doesn't clone the partition labels and UUIDs.

This PR aims to do just that.

If desired, I could make UUID retention configurable via arg parsing; this would be analogous to the checkbox to create new UUIDs in the GUI counterpart. If so, I would opt to add that as a separate PR.

marques-work commented 3 years ago

@spl237 WDYT? The aim is to bring the backup script to be more aligned with what the GUI does.

spl237 commented 3 years ago

This backup script was only ever intended as a rough reference to how the backup process was originally designed; it was never intended to be used, which is why the piclone package doesn't actually install it anywhere. piclone was only ever intended as a GUI backup solution, not a command-line one.

If you or someone else wants to use this script as the basis for a command-line backup tool, then be my guest, but in that case it needs to be as a new package with proper installation etc, not as part of this project. I don't have the resource to maintain the script as well as the GUI version, I'm afraid.