{"id":313,"date":"2009-04-08T18:15:29","date_gmt":"2009-04-09T01:15:29","guid":{"rendered":"http:\/\/todaywasawesomecom.local\/?p=313"},"modified":"2009-11-25T11:48:13","modified_gmt":"2009-11-25T18:48:13","slug":"backup-cydia-apps-iphone","status":"publish","type":"post","link":"https:\/\/todaywasawesomecom.local\/backup-cydia-apps-iphone\/","title":{"rendered":"Backup Cydia Apps – iPhone"},"content":{"rendered":"

I previously wrote a post on scripting the install of Cydia apps but I since found a much better way to handle the problem. Its a lot cleaner but it still doesn’t backup cydia apps data. Instead it creates a list of stuff thats been installed and makes it really easy to reinstall it all.<\/p>\n

Step 1: Backup Cydia Apps<\/h2>\n

To do this we’re going to need to fire up the terminal and create a file to store our list. This can all be handled with one command.<\/p>\n

dpkg --get-selections > myapps.txt<\/code><\/p><\/blockquote>\n

Putting this code into terminal will create a text file called “myapps.txt” which contains all the selections you’ve made in Cydia. Use an ftp client to save this file to your computer and you’re done.<\/p>\n

Most people at this point are now going to upgrade their phone, etc.<\/p>\n

Step 2: Restore Cydia Apps<\/h2>\n

Now you’ve got a fresh iphone with a fresh install of Cydia. You’ll need terminal and probably SSH installed first before you proceed. Once done upload your “myapps.txt”. Using terminal navigate to the directory containing that file and issue the following commands. Note: the $ at the beginning of each line is just the prompt and not part of the commands.<\/p>\n

$dpkg --set-selections < myapps.txt
\n$apt-get -u dselect-upgrade
\n$rm \/private\/var\/mobile\/Library\/Caches\/com.apple.mobile.installation.plist
\n$killall SpringBoard<\/code><\/p><\/blockquote>\n

You’re all done! If you want to understand what each command does then read on.<\/p>\n

<\/p>\n

Analysis<\/h2>\n

dpkg --set-selections < myapps.txt<\/code><\/p><\/blockquote>\n

This grabs everything that was selected in myapps.txt and loads it into the package manager.<\/p>\n

apt-get -u dselect-upgrade<\/code><\/p><\/blockquote>\n

This basically says “upgrade all current packages and install anything thats been selected. This is what actually installs all the cydia apps.<\/p>\n

rm \/private\/var\/mobile\/Library\/Caches\/com.apple.mobile.installation.plist<\/code><\/p><\/blockquote>\n

This step is vital. This file is basically a cache of which applications are installed. This command deletes that cache which will be automatically regenerated with all of our selections in place.<\/p>\n

killall SpringBoard<\/code><\/p><\/blockquote>\n

This kills the Springboard or iphone interface. It will automatically relaunch and generate a new com.apple.mobile.installation.plist. All done!<\/p>\n","protected":false},"excerpt":{"rendered":"

I previously wrote a post on scripting the install of Cydia apps but I since found a much better way to handle the problem. Its a lot cleaner but it still doesn’t backup cydia apps data. Instead it creates a list of stuff thats been installed and makes it really easy to reinstall it all. […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[67,65,79,66,25,68],"psp_head":"Backup Cydia Apps - iPhone \u2013 Today Was Awesome<\/title>\r\n<meta name=\"description\" content=\"I previously wrote a post on scripting the install of Cydia apps but I since found a much better way to handle the problem. Its a lot cleaner but it still doesn't backup cydia apps data. Instead it creates a list of stuff thats been installed and makes it really easy to reinstall it all.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/todaywasawesomecom.local\/backup-cydia-apps-iphone\/\" \/>\r\n","_links":{"self":[{"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/posts\/313"}],"collection":[{"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":8,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/posts\/313\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todaywasawesomecom.local\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}