First off - a big THANK YOU to the SHR developers for getting the new release 
out.

I thought I'd share with others how I do a backup before doing any upgrades.  
I know there's a utility someone else wrote that can do some of these things; 
I've just never tried it since I already had something else working.

This script will
-create a backup directory on your (linux) PC
-create a flashable backup image
-create a flashable backup kernel
-create a backup filesystem on your PC of the contents of your Neo's 
filesystem

You do have to have mkfs.jffs2 on your phone to be able to do the part that 
creates a flashable backup image.  Also, you'll need to have the usb network 
link set up to your phone with your phone's IP being 192.168.0.202. I created 
this script based on various posts by others to the support lists.

-------------------------------------------------
#!/bin/bash

backupdir=`date +%Y%m%d`
cd $HOME
mkdir $backupdir
cd $backupdir

ssh [email protected] 'mkdir /var/tmp/root'
ssh [email protected] 'mount -t jffs2 /dev/mtdblock6 /var/tmp/root'

ssh [email protected] "mkfs.jffs2 -d /var/tmp/root -e 128 \
    --pad --no-cleanmarkers -x lzo" | pv -W > rootfs.jffs2

mkdir filesystem
cd filesystem
ssh [email protected] "cd /var/tmp/root; tar cf - ." | tar xvf -

cp boot/uImage-2.6.29-rc3 ../uImage.img
-------------------------------------------------

Now you have an accessible copy of your current filesystem from which you can 
copy your customizations to the shiny new SHR image.  Also, you can follow 
the online flashing instructions to reflash your backup image if you need to.

Josh
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to