I want to make backups of my EMMC/SD card in the most efficient way. I'd like to be able to clone and restore MBR, bootloader and any partitions with the added bonus of being able to restore them on a different size card.
I've tried dd-ing the whole card, and while it worked, it was slow for 32GB...
I've also looked at loboris' scripts because they have backup/restore functionality, but it only works with his partition layout.
Before I go out and reinvent the wheel, I'd like to ask if there's already a way of doing what I'd like.
From what I've seen, it seems that:
1. The MBR is the first 512 bytes from the disk, extractable with
Code: Select all
dd if=/dev/mmcblk0 of=mbr.bin bs=1 count=512
3. Each partition is extractable with rsync, or partimage. Except partimage can't handle ext4. If I use rsync, I have flexibility when it comes to destination partition size (after fixing the mbr). But the problem is I have to keep track of UUIDs and fix boot.ini and /etc/fstab if uuid changes. Rsync would be nice because you could easily refresh an older backup without transferring everything.
My question is - what is your preferred backup/restore method for your cards? Maybe I missed something obvious...