Hello,
still searching for the "perfect" backup solution for my C3000. Requirements:
* backup the COMPLETE Zaurus setup with one shell command or better automatically each night with cron job or similar, i.e. without booting to single user mode and without going through any service or diagnose menu
* Easy restore in case of a total hardware failure, either on another device (cloning the setup) or on the same device
* No 4GB+ media must be needed (for Sharp's built-in microdrive backup this is needed, I was told)
-----
Now I have an idea. Please tell me if this could fulfill my needs or if I missed something important:
Use a large SD or CF card, probably 1GB is enough (excluding video and mp3 files on hdd3 from the backup saves a lot of space and time!).
Do the folllowing from the shell script:
#!/bin/bash
# backup entire home partition:
dd if=/dev/mtdblock3 | bzip2 > /mnt/card/mtdblock3.img.bz2
# backup entire user program area:
dd if=/dev/hda2 | bzip2 > /mnt/card/hda2.img.bz2
# backup hdd3 contents, but without multimedia stuff
# (file dontbackup contains names of Multimedia directories to exclude)
gtar cvzf /mnt/card/hdd3.tgz -X /mnt/card/dontbackup
# suspend Zaurus after backup:
sleep 5 && qcop QPE/System "execute(QString)" suspend
hdd1 is readonly so probably does not have to be backed up I think. Isn't it fully restored by a Cacko ROM reflash?
Restore procedure would be:
0. (if necessary): Restore factory hdd strutrure via service menu
1. Re-flash Cacko ROM per instructions
2. bunzip2 /mnt/card/hdd2.img.bz2 | dd of=/dev/hda2
3. bunzip2 /mnt/card/mtdblock3.img.bz2 | dd of=/dev/mtdblock3
4. install gtar
5. cd /hdd3
6. gtar xzvf /mnt/card/hdd3.tgz
7. reboot
Would this work?
Could there be problems
* restoring hda2 because we execute something from hdd2 (bunzip2 is on hda2 in Cacko)
* backing up the entire partitions while they are in use (non-consistent file systems)?
Can these potential problems be solved by using single user mode? (I would like to avoid this, because I want to be able to make a backup daily / at night, and I really do not want to reboot the Zaurus that often!).
Can the backed up partitions be unmounted cleanly during operation of the Zaurus in order to avoid non-consistent file systems in the backup?
In order to unmount them cleanly, how can the Zaurus still access the necessary programs (bzip2 and gtar on hdd2) - maybe copy them onto a Ramdisk temporarily. But how to do that?
Any thoughts about this?
Thank you
daniel