billw2 / rpi-clone

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

add dry-run mode and -u|--uuid for disk uuid instead of hard-coded sdN #16

Open hominhquan opened 9 years ago

hominhquan commented 9 years ago

It's to have: (1) -n|--dry-run in RSYNC_OPTIONS (2) -u|--uuid indicating a disk UUID instead of hard-coded sdN (in case of using cron job and disk table changed after power down => very very dangerous). Using blkid command to query disk label based on UUID is more tolerant.