Join Today
+ Reply to Thread
Results 1 to 6 of 6
  1. #1

    Default System Backup/Restore Shell scripts of Contacts,Messages,etc

    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

  2. #2
    Join Date
    Feb 2005
    Location
    sg<br>Mobile: e680 -> i (c5a4p)
    Posts
    1,412

    Default Re: System Backup/Restore Shell scripts of Contacts,Messages

    good find luckydip!!

    Quote Originally Posted by luckydip
    Backup script:
    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
    careful tho, if you havent backup, ie /mmc/mmca1/.sysBackup/db is empty, the script will still delete your current db!!

  3. #3

    Default Re: System Backup/Restore Shell scripts of Contacts,Messages

    I wonder how to use this, do u need to put it as .lin???

  4. #4
    Join Date
    Feb 2005
    Location
    sg<br>Mobile: e680 -> i (c5a4p)
    Posts
    1,412

    Default Re: System Backup/Restore Shell scripts of Contacts,Messages

    yes, you can just save it as backup.lin and restore.lin

  5. #5
    Join Date
    Apr 2005
    Location
    Czech Republic
    Posts
    19

    Default Re: System Backup/Restore Shell scripts of Contacts,Messages

    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

  6. Default Re: System Backup/Restore Shell scripts of Contacts,Messages

    will it works on E680i too ?


 
+ Reply to Thread

Similar Threads

  1. Replies: 30
    Last Post: 07-01-2009, 09:25 AM
  2. Replies: 0
    Last Post: 03-29-2008, 01:25 PM
  3. Q: How do I restore contacts from Backup-Restore app?
    By IAMEMINEM in forum A1200 General Chat
    Replies: 3
    Last Post: 09-25-2007, 08:01 PM
  4. restore my contacts, help please
    By samie in forum E680 General Chat
    Replies: 6
    Last Post: 08-22-2007, 09:59 AM
  5. Broken restore, Motorola backup dirs, Contacts.cdb and etc !
    By iQEM in forum Symbian UIQ Symbian V7(A1000, M1000)
    Replies: 2
    Last Post: 09-12-2005, 08:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1