Hi Meanie,
I haven't tried the latest, but if I understand your script correctly (especially the if-then-clauses) I'm curious about some parts:
- Am I correct to assume that if a "/data"-partition is found the backup goes there. If a extended-root-environment is detected (/usr mounted on hd), then first a tgz with the contents of /usr is created. Ok, that is needed for "flashing" the hdimage. Then the jffs2-filesystem is created and stored temporary on /data. Until now all is clear to me. However, then the jffs2-image is "pasted" into the tgz file rendering it invalid. I'm not sure if this is planned, as I would have expected to have two files at the end, the jffs2-image for the root filesystem which goes onto the flash and the hdimage.tgz which is extracted onto the first partition of the harddisk.
- Somewhere in between the script tries to unmount /usr. Well, on a running system this just has to fail and does. Later on the script remounts the partition resulting in /usr being mounted twice. Basically this is unnecessary, as the whole partition can be copied while it is mounted.
I'll have a look over the latest version tonight. I'm no expert on shell scripting but I'll try to point out any bugs I might find.