+ Reply
Results 1 to 10 of 10

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: what to backup via SSH?

is a discussion within the

General iPhone Chat

forums, a part of the

iPhone Modding

section;
I restored my iPhone using iTunes, then I had to install all my third party apps again. Then I had to drag each jiggling icon to whatever springboard page from
...
  1. #1
    What's Jailbreak?
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    1
    Thanked 4 Times in 2 Posts

    Default what to backup via SSH?
    I restored my iPhone using iTunes, then I had to install all my third party apps again. Then I had to drag each jiggling icon to whatever springboard page from before, though some appeared on the correct page when installed. Not only was this a pain, it was a pain last time I did it.

    I've used ZiPhone and iPlus. ZiPhone has a GUI and is easier, bit iPlus installs SSH, a repaired term-vt100, and a couple other things, so I will go with iPlus next time.

    I keep a backup of my iPhone, made through SSH. I transfer everything but the /dev folder. Last time 13 files failed to transmit because of name conversion or being locked.

    If I must restore my iPhone again, what do I transmit back to restore all my apps? iTunes restores Safari bookmarks, mail setup, WiFi setup, and a few other things. iTunes will also restore music that was downloaded. I don't need to duplicate that, but if so, no big deal.

    If I copy a list of folders/files via SSH that change, on a regular basis, I want to do the following steps to restore my iPhone to what it was at any time:
    1) Restore with iTunes
    2) Jailbreak with iPlus
    3) Restore folders/files via SSH
    4) Reboot iPhone and all springboard pages should be what they were and all apps should work like they did, without invoking installer.

    So, what needs to be backed up? It would be good to have this documented somewhere for the sake of everyone.

    I will also write a Windows app to go both ways, similar to the iPhone Notes app I made at http://subjectivist.org/iphone

    renewing my question
    Last edited by SkepticDave; 03-23-2008 at 09:48 AM. Reason: Automerged Doublepost

  2. #2
    iPhoneaholic nirav464's Avatar
    Join Date
    Dec 2007
    Posts
    318
    Thanks
    28
    Thanked 17 Times in 16 Posts

    please someone answer this question b/c this is the reason I'm not upgrading my FW. Don't want to install all it app again.

  3. #3
    iPhone? More like MyPhone aemreunal's Avatar
    Join Date
    Jul 2007
    Location
    Istanbul
    Posts
    118
    Thanks
    3
    Thanked 7 Times in 7 Posts

    I'm wondering the same thing...

    I actually tried to do this, it is theoretically possible, there are just too many files to deal with, you gotta take care of the apps, peermissions, preferences, frameworks, ......... etc. If you can collect every single of the necessary files, put them in necessary positions and repair every single permission then you can achieve this. It's too long to do it by hand, you gotta get all the info and write an app for your PC to do all this. If I had the knowledge I would be working on this right now, I contacted a few people on the scene regarding this but haven't been able to resolve this issue. If you are willing to do this, let me give you a few good starting hints:

    1) Develop a Mac app, uses the same file structure with the iPhone so it will be easier to do it.
    2) Use AFP, it uses the native file structure and protocol of the iPhone file structure with a Mac so you can more easily change/read/manipulate files using a Mac

  4. #4
    What's Jailbreak?
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    1
    Thanked 4 Times in 2 Posts

    I don't have a Mac and see no need to do a Mac virtually. The SharpSSH modules I found work real well. To do a backup I may have to get a file, interrogate it, then branch from there.

    People use apps from the iPhone on the iPod Touch, and there are instructions how to do that. What I read seemed easy. Restoring iPhone apps from a backup should be similar. It seems each saved application should be written back to the iPhone, with associated folders, permissions set, then plist files updated.

    Maybe if enough people comment here we can get enough info to do this.

  5. #5
    iPhoneaholic cscho0415's Avatar
    Join Date
    Jan 2008
    Posts
    339
    Thanks
    18
    Thanked 52 Times in 43 Posts

    what i did was go to the installer... go to unistall... in word wrote down all the apps i installed... then went to sources and wrote down all the sources i had... upgraded and did it all over...untill they come out with an app thats what u got to do
    always hit the thanks button

    no signature spam/links... Thanks

  6. #6
    What's Jailbreak?
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    1
    Thanked 4 Times in 2 Posts

    That's what I do. The biggest pain is scrolling through installer, studying each, and picking out what you think you had previously. If you've put all their names in a file alphabetically, you only need to make one pass through installer and put them in the queue. I sent a request to the installer contact and asked to add a queue export file. No response. That could be maintained automatically by installer with each install, then after restoring the iPhone, restore just that one file and have installer act on it. This might be the way to go instead of doing a backup. I think what has already been installed by installer is available. A standalone program could be made to get that info and save it, then after restoring, an installer script could be made.

    This is a needed application. Any help how to proceed would be appreciated.

  7. #7
    iPhone? More like MyPhone aemreunal's Avatar
    Join Date
    Jul 2007
    Location
    Istanbul
    Posts
    118
    Thanks
    3
    Thanked 7 Times in 7 Posts

    I didn't said you "needed" to make a Mac app, I said it would be easier to develop a Mac app. Read the post again, purdy please.
    Last edited by Dash-2; 03-24-2008 at 07:52 PM. Reason: Be nice.

  8. #8
    What's Jailbreak?
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    1
    Thanked 4 Times in 2 Posts

    Quote Originally Posted by aemreunal View Post
    I didn't said you "needed" to make a Mac app, I said it would be easier to develop a Mac app. Read the post again, purdy please.
    I did read your post. I said I do not have a Mac and I do not need to do one virtuallly, which means run OSX as a virtual machine. That means I don't want to. I don't like Macintosh. They just happened to make a good iPhone even though it only has one elegant button on the front. I've been writing Windows applications since Windows first came out, and MSDOS long before that.

    If I was going write an application to run on the iPhone that would be different. But I'm not going to do that. I'm going to write a Windows application and get what I need from the iPhone via SSH.

  9. #9
    Green Apple br401k's Avatar
    Join Date
    Mar 2008
    Location
    rhode island
    Posts
    31
    Thanks
    9
    Thanked 9 Times in 2 Posts

    i had to also

  10. #10
    What's Jailbreak?
    Join Date
    Aug 2008
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    theres lots of files to backup:

    **when restoring, copy the file over and set permissions to 775**

    saved games/ Application Data
    /private/var/mobile/Applications/big long number/Documents
    Most of the time your data is in here, just one file. A .db (database) file or sometimes a file called "save"

    /Library/Themes
    if you have any themes, for winterboard

    default Apps: (youtube, call history, webclips etc)
    /private/var/mobile/Library
    /var/mobile/Library/ here too?
    relatively small directory, mine is 20mb

    NES Roms (if you have em):
    /var/mobile/media/ROMs/NES/

    Cydia Apps
    /Applications

    Also, do any of your cydia applications dL things themselves? like dTunes or mxTube? if so you'll want to backup those files as well


    If I were you, I'd back up everything just in case. Then worry about finding the files you need when it comes time to restore, if you need to. (apparently Itunes backs up these files..but doesnt work a lot of the time for me so that's why I looked into this).

    Just make sure to skip your music directories: /private/var/mobile/Media/iTunes_Control/Music and /var/mobile/Media/iTunes_Control/Music/
    you can skip your photos as well if you want: /var/mobile/Media/Photos and /private/var/mobile/Media/Photos


    this post was helpful as well:
    http://www.modmyi.com/forums/file-mo...game-data.html
    Last edited by misscali; 09-20-2008 at 03:43 AM.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts