good find luckydip!!
careful tho, if you havent backup, ie /mmc/mmca1/.sysBackup/db is empty, the script will still delete your current db!!Originally Posted by luckydip
Backup script:
#!/bin/bash
BackupDir="/mmc/mmca1/.sysBackup/db"
SysDir="/ezxlocal/sysDatabase"
if [ $SysDir/native.db -nt $BackupDir/native.db ]; then
mkdir $BackupDir
rm $BackupDir/*
cp -p $SysDir/* $BackupDir
fi
Restore script:
#!/bin/bash
BackupDir="/mmc/mmca1/.sysBackup/db"
SysDir="/ezxlocal/sysDatabase"
#if [ $BackupDir/native.db -nt $SysDir/native.db ]; then
rm -f $SysDir/*
cp -p $BackupDir/* $SysDir
chown ezx:ezx $SysDir/*
chmod 660 $SysDir/log.*
chmod 666 $SysDir/native*.db
exec reboot
#fi
good find luckydip!!
careful tho, if you havent backup, ie /mmc/mmca1/.sysBackup/db is empty, the script will still delete your current db!!Originally Posted by luckydip
I wonder how to use this, do u need to put it as .lin???
yes, you can just save it as backup.lin and restore.lin
There is a little error in restore script:
chmod 660 $SysDir/log.*
correct is:
chmod 660 $SysDir/log*
But its a minor problem.
I have used this script with no problem,but in sms a have one folder protected by password. It was working fine. But after flashing and using restore script the password doesnt fit. I m really sure that I have correct pass.
Any ideas?
Thx
will it works on E680i too ?