Backup SMS (sms.db) on your iPhone the easy way (openSSH)

We all love SMSs from our loved ones, don’t we? I always had issues with SMS since I tend to loose them with so many different firmware installs and I always have issues with setting up the iPhone from a backup (it just messes everything up!).

Anyway, openSSH comes to your rescue! Make sure you have openSSH installed via Cydia or installer and boom, use Fugu, Cyberduck or any FTP tool (Windows and Mac) and login to your iPhone (ip address from WiFi settings, username : root, password : alpine, port: 22).

This is the path you have to check for SMS.db file which has all your SMSs!

var/Mobile/Library/SMS

Copy the SMS.db file locally and make sure you update the cop before and after you restore a new firmware! Told ya its easy ๐Ÿ™‚ Lemme know if you have any issues with this process…

46 Comments

  • Trackback: Download Pwnage 2.0.2 for Mac, Bootloaders 3.9 & 4.6, iPhone Pwned Firmware 2.0.1 (Windows and Mac) | iLikeMyiPhone.com
  • Trackback: Cรณmo hacer copias de seguridad de los SMS en el iPhone, mediante SSH
  • Trackback: C
  • Trackback: Copia de seguridad de los SMS
  • Trackback: Copia de seguridad de los SMS - iPhoneros.net - Foro de iPhone
  • Trackback: Backup de los sms del iPhone at listapalm v. 2.0
  • heinz
    Posted October 16, 2008 6:45 am 0Likes

    a free solution for windows to accomplish this would be http://insend.de

  • April
    Posted October 23, 2008 2:27 am 0Likes

    Hi. few questions I’m running Windows Xp as my OS. Had to use WinSCP as My FTp Tool. I did find the correct path :SMS.db copied the file to a good location. Now what? when i restore and upgrade to the newest firmware. then pwn. then backup from itunes. How can i review this file? do i drop it back in my SMS folder using SSH. or can i view this file on my PC with a program? Please advise, thanks for your help.
    A

  • kiran
    Posted October 23, 2008 2:29 am 0Likes

    April : All you have to do is replace the sms.db file and you are good to go!

  • April
    Posted October 23, 2008 2:45 am 0Likes

    Ok I will try it! is their a way to view the sms.db file on my PC.

  • Sudhakar
    Posted November 1, 2008 1:45 am 0Likes

    Great it works!
    Wanted to upgrade to 2.1 but don’t want to loose sms… stumbled across this page and tried… it worked…

    Also, you could do the same even for notes… The file is in /var/mobile/Library/Notes/notes.db…

  • kiran
    Posted November 1, 2008 1:46 am 0Likes

    Technically speaking : It should work and it will ๐Ÿ™‚ I didn’t try it though!

  • buzmuzguz
    Posted June 21, 2009 5:52 pm 0Likes

    hi, i update to 3.0, i backed up my contacts sms via ssh, when i put the sms file back in and reboot the spring board contanlty crashes! the contacts work fine. any suggestions?

    • Kiran
      Posted June 21, 2009 12:56 pm 0Likes

      I would suggest taking a backup via iTunes and store contacts locally and follow my latest guide for iPhone 3.0!

  • iMaradona
    Posted July 13, 2009 9:56 am 0Likes

    Hi, after copying my sms history and my address book using WinSCP, I set up my phone as a new iPhone. I copied them back and now I cant delete, send or receive any sms and I can’t delete or add new contacts ! Have I made a mistake somewhere? Thanks

  • Srinivas
    Posted July 29, 2009 4:22 am 0Likes

    In order to restore your old sms.db properly, first log in to your iPhone via SSH with the user "mobile" (not "root") and password "alpine". Then copy over your old sms.db to the /private/mobile/Library/SMS directory and change permissions to 644. That's it. You should now have all your old messages and the SMS app will work as normal! I'm on 3.0 btw.

    • kkiran
      Posted July 29, 2009 4:33 am 0Likes

      Thanks Srinivas! I will update the guide ๐Ÿ™‚ I rely on my restores generally…

    • mushroom13
      Posted September 8, 2009 1:34 am 0Likes

      what do u mean change the permission to 664 ?????

  • Srinivas
    Posted July 29, 2009 5:35 am 0Likes

    When upgrading versions I tend to set up my iPhone as a new Phone rather than doing a restore, which is when I manually reinstall some of my old settings and databases. Restoring causes conflicting settings occasionally when upgrading I've heard. Take a look at the Dev Team's latest post on their blog for an example: http://blog.iphone-dev.org/.

    Thanks for putting out all this info by the way!

  • mushroom13
    Posted September 7, 2009 7:19 am 0Likes

    it doesnt work !!! ๐Ÿ™ i dunno what happen…helpppppp !!! after i upgrade my phone to 3.01, i overwrite sms.db to file /private/mobile/Library/SMS, after i restart my phone.. it crashed ~~~~ i can even on my phone… it hanged n my phone keep on blinking…. how come like that ???? any solution for me? now i need to redo again the restore steps….. ๐Ÿ™ any solution pls email me to : mushroom13@hotmail.com thanks…….

    • kkiran
      Posted September 7, 2009 7:39 am 0Likes

      Hey! Did you change the permissions of the sms.db file? I did not personally check this on 3.0.1 myself. Can you SSH to your iPhone??

  • mushroom13
    Posted September 7, 2009 7:24 am 0Likes

    kkiran~~~~ help me plsssss

  • mushroom13
    Posted September 7, 2009 7:25 pm 0Likes

    i did installed open ssh from cydia to my iphone.. so that i able to use winscp to transfer my file.. now problem is when i overwrite the sms.db , after i restart my phone.. my phone blinking like crazy.. wht's wrong with that ? anyone using 3.01 got this problem ??? pls help me… i really wish to retrieve back my txt msgs… : ( help me plsssssssssssss~~~~~~~

  • mushroom13
    Posted September 7, 2009 2:28 pm 0Likes

    kkiran can u plss add me in msn ? so that u can teach me what to do next???

  • mushroom13
    Posted September 7, 2009 8:38 pm 0Likes

    hi everyone u can follow this instruction ~in worked on 3.01 ~~~~ In order to restore your old sms.db properly, first log in to your iPhone via SSH with the user "mobile" (not "root") and password "alpine". Then copy over your old sms.db to the /private/mobile/Library/SMS directory a. That's it. You should now have all your old messages and the SMS app will work as normal! I'm on 3.01 ……

  • sebastian
    Posted October 13, 2009 2:06 pm 0Likes

    works great even with 3.1.2

  • sebastian
    Posted October 14, 2009 11:39 am 0Likes

    sorry, but i must correct this. i can see my old messages, but when i try to send a new one the sms.app crashes suddenly.

    • iLikeMyiPhone
      Posted October 14, 2009 1:29 pm 0Likes

      Not sure what firmware you are on. I didn't test this hack with 3.X firmware. Did you change the permissions of the file?

  • tarek
    Posted October 20, 2009 2:55 am 0Likes

    same probleeeeem ๐Ÿ™ anyone help me pleaseeee ๐Ÿ™ i want to use my mobile.. i stay every day trying.. :S
    can't send sms when upgrading from 3.1 to 3.0 any fix?.. the msgs are important.. ๐Ÿ™
    My iphone type is 3g firmware 3.0 jailbraked and unlocked operating system (windows xp)

  • Nareshkumar
    Posted December 4, 2009 11:58 am 0Likes

    Can someone upload a blank sms.db, i accidentally deleted mine.

    iPhone 3G
    3.1.2

    • iLikeMyiPhone
      Posted December 4, 2009 2:06 pm 0Likes

      Try creating a blank sms.db file. It should automatically be populated.

      Are you able to open up SMS application on your iPhone? If sms.db file is deleted, it shouldn't boot in the first place. If it did, send yourself a sample text. It should be all set.

Leave a comment