Hi bedna,
I have to admit that I didnt look too deep in your script. This is mainly because my backaup strategy works now and is established for a lot of system, not only the odroid hc2. Therefore I dont want to change it.
But maybe our misunderstanding is based on the terms image and files. For me you can backup on image level or on file level. There is no in-between. Of course you can mount an image and access the files, but its still a different thing. And taking an image-based backup of a running system is not a good idea in my opinion.
> But restoring it is only possible on exactly the same type of sd, which will typically not be the case if you want to make a clone.
You cited this sentence but removed the sentence before which is important. I was refering to a backup of the first 4 MB of a sd (and not your script). When you restore the first 4 MB to a different sd, you will delete the partition table. So at least you have to rewrite the partition table. But even then it didnt work for me. Did not find out the reason for that, maybe I did something else wrong.
Regards,
Jürgen