{"id":659,"date":"2011-04-20T14:39:43","date_gmt":"2011-04-20T06:39:43","guid":{"rendered":"http:\/\/vern.im\/blog\/?p=659"},"modified":"2011-09-30T01:21:08","modified_gmt":"2011-09-29T17:21:08","slug":"how-to-backup-and-restore-your-iphone-cydia-applications","status":"publish","type":"post","link":"https:\/\/vern.im\/archive\/2011\/04\/20\/how-to-backup-and-restore-your-iphone-cydia-applications.html","title":{"rendered":"\u5982\u4f55\u5099\u4efd\u4e26\u6062\u5fa9 Cydia \u4e2d\u7684\u61c9\u7528\u7a0b\u5e8f"},"content":{"rendered":"

\u6211\u500b\u4eba\u662f\u652f\u6301\u8d8a\u7344\u7684\uff0c\u6211\u9700\u8981\u7b2c\u4e09\u65b9\u8f38\u5165\u6cd5\uff0cgfwinterceptor\uff0cNotified Pro\uff0cSbsettings \u7b49\u3002 \u4f46\u9019\u662f\u5f88\u4fec\u4eba\u7684\u4e8b\u60c5\uff0c\u6211\u5c31\u4e0d\u5206\u4eab\u81ea\u5df1\u7684\u61c9\u7528\u7a0b\u5e8f\u4e86\u3002<\/p>\n\n

\u58de\u6d88\u606f\u662f\uff0c\u6bcf\u6b21\u5347\u7d1a\u6642 Cydia \u4e2d\u7684\u61c9\u7528\u7a0b\u5e8f\u90fd\u6703\u88ab\u6c38\u4e45\u522a\u9664\uff0c\u91cd\u65b0\u5b89\u88dd\u662f\u975e\u5e38\u75db\u82e6\u7684\u4e8b\u60c5\u3002<\/p>\n\n

\u597d\u6d88\u606f\u662f\uff0ciTunes \u53ef\u4ee5\u5099\u4efd\u5e7e\u4e4e\u6240\u6709\u61c9\u7528\u7a0b\u5e8f\u7684\u8a2d\u7f6e\u3002<\/p>\n\n

\u56e0\u6b64\u5099\u4efd\u4e26\u6062\u5fa9 Cydia \u4e2d\u7684\u61c9\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u5347\u7d1a\u4e26\u8d8a\u7344\u540e\u7232\u4f60\u7bc0\u7701\u5f88\u591a\u6642\u9593\uff0c\u4ee5\u4e0b\u5167\u5bb9\u53c3\u8003\u81ea MTE<\/a>\u3002<\/p>\n\n

\u7b2c\u4e00\u79cd\u8fa6\u6cd5\u662f\u7528 Aptbackup \u6216\u8005 PKGBackup \u9019\u6a23\u7684\u7a0b\u5e8f\uff0c\u4e8c\u8005\u90fd\u662f\u53ef\u4ee5\u5728 iOS \u8a2d\u5099\u4e0a\u9032\u884c\u5099\u4efd\uff0c\u7136\u5f8c\u901a\u904e iTunes \u540c\u6b65\uff0c\u5347\u7d1a\u540e\u518d\u9032\u884c\u6062\u5fa9\u3002\u4f46\u6211\u5f9e\u4f86\u6c92\u6709\u6210\u529f\u904e\uff0c\u524d\u8005\u6062\u5fa9\u4e0d\u5168\uff0c\u800c\u4e14\u6bcf\u6b21\u5347\u7d1a\u53ea\u80fd\u6062\u5fa9\u4e00\u6b21\u3002\u5f8c\u8005\u6211\u5728\u5404\u7248\u672c\u4e2d\u5c31\u6c92\u6709\u5099\u4efd\u6210\u529f\u904e\u3002<\/p>\n\n

\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u7576\u7136\u66f4\u6709\u610f\u601d\u3002\u9996\u5148\u4f60\u9700\u8981\u77e5\u9053\u5982\u4f55\u5728 iOS \u8a2d\u5099\u8207\u96fb\u8166\u7d42\u7aef\u9593\u50b3\u8f38\u6587\u4ef6\uff0c\u7136\u5f8c\u5728\u4f60\u7684\u8d8a\u7344\u8a2d\u5099\u4e2d\u9700\u8981\u6709 MobileTerminal \u6216\u8005 OpenSSH\uff0c\u6211\u500b\u4eba\u50be\u5411\u65bc\u5f8c\u8005\u3002<\/p>\n\n

\u5099\u4efd\u7684\u6b65\u9a5f\u5982\u4e0b\uff1a<\/strong><\/p>\n\n

    \n
  1. \u5982\u679c\u4f60\u6709\u4f7f\u7528\u7b2c\u4e09\u65b9\u6e90\uff0c\u9700\u8981\u5099\u4efd\u6e90\u5217\u8868\u3002\u5e38\u898b\u7684\u8fa6\u6cd5\u662f\u5099\u4efd \/etc\/apt\/sources.list.d\/ \u4e0b .list \u7684\u6587\u4ef6\uff0c\u4f46\u6211\u6c92\u6709\u89aa\u6e2c\u3002\u6211\u7528\u7684\u662f\u66f4\u7b28\u7684\u65b9\u6cd5\uff0c\u628a\u6e90\u5217\u8868\u622a\u5716\u4fdd\u5b58\u3002<\/p><\/li>\n

  2. \u5728 MobileTerminal \u6216\u8005 SSH \u4e2d\u9032\u5165 root \u6b0a\u9650\uff0c\u7136\u5f8c\u8f38\u5165\uff1a<\/p><\/li>\n<\/ol>\n\n

    <\/code><\/p>\n\n

    dpkg -l | grep ^ii | awk '{print $2}' > \/var\/root\/cydiabkup.txt<\/blockquote>\n\n

    <\/p>\n\n

      \n
    1. \u7136\u5f8c\u5c07\u751f\u6210\u7684 cydiabkup.txt \u6587\u4ef6\u4fdd\u5b58\u5230\u672c\u5730\u5373\u53ef\u3002 \uff08\u6253\u958b\u9019\u500b\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4f60\u7684\u7a0b\u5e8f\u5217\u8868\uff09<\/li>\n<\/ol>\n\n

      \u73fe\u5728\u53ef\u4ee5\u653e\u5fc3\u7684\u5347\u7d1a\u4e26\u8d8a\u7344\u4f60\u7684\u6a5f\u5668\u3002\u7136\u5f8c\u5728\u6062\u5fa9 iTunes \u5099\u4efd\u4e4b\u524d<\/strong>\uff0c\u61c9\u8a72\u5148\u6062\u5fa9 Cydia \u7684\u5099\u4efd\u3002<\/p>\n\n

      \u4e0b\u9762\u662f\u6062\u5fa9\u7684\u6b65\u9a5f\uff1a<\/strong><\/p>\n\n

        \n
      1. \u6062\u5fa9\u4f60\u7684\u7b2c\u4e09\u65b9\u6e90\u5217\u8868\uff0c\u5c07\u4e4b\u524d\u4fdd\u5b58\u7684 .list \u6587\u4ef6\u5c0e\u5165 \/etc\/apt\/sources.list.d\/ \u6587\u4ef6\u593e\uff0c\u6216\u50cf\u6211\u4e00\u6a23\u91cd\u65b0\u8f38\u5165\u3002\u6ce8\u610f\uff0c<\/strong>\u9664\u975e\u4f60\u4e3b\u52d5\u653e\u68c4\u5b89\u88dd\u67d0\u4e9b app\uff0c\u5426\u5247\u6700\u597d\u4e0d\u8981\u6f0f\u6389\u4efb\u4f55\u4e00\u500b\u4e4b\u524d\u6dfb\u52a0\u7684\u7b2c\u4e09\u65b9\u6e90\u3002<\/p><\/li>\n

      2. \u5728 Cydia \u4e2d\u5b89\u88dd Bigboss Recommended Tools \uff0c\u7576\u7136\u4f60\u4e5f\u53ef\u4ee5\u55ae\u500b\u5b89\u88dd\u6240\u9700\u5de5\u5177\u2014\u2014 OpenSSH, Gawk, MobileTerminal \u4ee5\u53ca APT 0.7 \u3002<\/p><\/li>\n

      3. \u5c07\u4ee5\u4e0b\u5167\u5bb9\u4fdd\u5b58\u6210\u540d\u7232 install-cydia-app.sh \u7684\u6587\u4ef6\uff1a\n<\/code><\/p><\/li>\n<\/ol>\n\n

        #!\/bin\/sh\ndpkg -l | grep ^ii | awk '{print $2}' > \/var\/root\/cydianew.txt\ndiff \/var\/root\/cydianew.txt \/var\/root\/cydiabkup.txt | grep ^\\> | awk '{print $2}' > \/var\/root\/cydiainstall.txt\napt-get install `cat \/var\/root\/cydiainstall.txt`<\/blockquote>\n\n

        <\/p>\n\n

        \u6216\u76f4\u63a5\u4e0b\u8f09<\/a>\u9019\u500b\u6587\u4ef6\uff08\u9700\u7ffb\u7246\uff09\u3002<\/p>\n\n

          \n
        1. \u5c07 cydiabkup.txt \u548c install-cydia-app.sh \u50b3\u8f38\u5230 iOS \u8a2d\u5099\u4e0a\u7684 \/var\/root \u76ee\u9304\u3002<\/p><\/li>\n

        2. \u540c\u6a23\uff0c\u5728 MobileTerminal \u6216 SSH \u4e2d\u9032\u5165 root \u6b0a\u9650\u5f8c\u8f38\u5165\uff1a<\/p><\/li>\n<\/ol>\n\n

          <\/code><\/p>\n\n

          sh \/var\/root\/install-cydia-app.sh<\/blockquote>\n\n

          <\/p>\n\n

          \u904b\u884c\u6b64\u547d\u4ee4\u5f8c\uff0c\u4f60\u7684 iOS \u8a2d\u5099\u6703\u81ea\u52d5\u641c\u7d22\u4e26\u4e0b\u8f09 cydiabkup.txt \u5217\u8868\u4e2d\u7684\u7a0b\u5e8f\uff0c\u7136\u5f8c\u6703\u51fa\u73fe \u201cAfter this operation, xxxMB of additional disk space will be used. Do you want to continue [Y\/n]?\u201c \u9019\u6a23\u7684\u63d0\u793a\uff0c\u8f38\u5165\u300cY\u300d\u4e26\u56de\u8eca\u5c31\u597d\uff0c\u7a0b\u5e8f\u5b89\u88dd\u7684\u6642\u9593\u53d6\u6c7a\u65bc\u5217\u8868\u7684\u9577\u5ea6\u548c\u7a0b\u5e8f\u7684\u5927\u5c0f\u3002<\/p>\n\n

            \n
          1. \u6062\u5fa9 iTunes \u5099\u4efd\uff0c\u5927\u529f\u544a\u6210\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

            \u6211\u500b\u4eba\u662f\u652f\u6301\u8d8a\u7344\u7684\uff0c\u6211\u9700\u8981\u7b2c\u4e09\u65b9\u8f38\u5165\u6cd5\uff0cgfwinterceptor\uff0cNotified Pro\uff0cSbsettings \u7b49\u3002 \u4f46\u9019\u662f\u5f88\u4fec\u4eba\u7684\u4e8b\u60c5\uff0c\u6211\u5c31\u4e0d\u5206\u4eab\u81ea\u5df1\u7684\u61c9\u7528\u7a0b\u5e8f\u4e86\u3002 \u58de\u6d88\u606f\u662f\uff0c\u6bcf\u6b21\u5347\u7d1a\u6642 Cydia \u4e2d\u7684\u61c9\u7528\u7a0b\u5e8f\u90fd\u6703\u88ab\u6c38\u4e45\u522a\u9664\uff0c\u91cd\u65b0\u5b89\u88dd\u662f\u975e\u5e38\u75db\u82e6\u7684\u4e8b\u60c5\u3002 \u597d\u6d88\u606f\u662f\uff0ciTunes \u53ef\u4ee5\u5099\u4efd\u5e7e\u4e4e\u6240\u6709\u61c9\u7528\u7a0b\u5e8f\u7684\u8a2d\u7f6e\u3002 \u56e0\u6b64\u5099\u4efd\u4e26\u6062\u5fa9 Cydia \u4e2d\u7684\u61c9\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u5347\u7d1a\u4e26\u8d8a\u7344\u540e\u7232\u4f60\u7bc0\u7701\u5f88\u591a\u6642\u9593\uff0c\u4ee5\u4e0b\u5167\u5bb9\u53c3\u8003\u81ea MTE\u3002 \u7b2c\u4e00\u79cd\u8fa6\u6cd5\u662f\u7528 Aptbackup \u6216\u8005 PKGBackup \u9019\u6a23\u7684\u7a0b\u5e8f\uff0c\u4e8c\u8005\u90fd\u662f\u53ef\u4ee5\u5728 iOS \u8a2d\u5099\u4e0a\u9032\u884c\u5099\u4efd\uff0c\u7136\u5f8c\u901a\u904e iTunes \u540c\u6b65\uff0c\u5347\u7d1a\u540e\u518d\u9032\u884c\u6062\u5fa9\u3002\u4f46\u6211\u5f9e\u4f86\u6c92\u6709\u6210\u529f\u904e\uff0c\u524d\u8005\u6062\u5fa9\u4e0d\u5168\uff0c\u800c\u4e14\u6bcf\u6b21\u5347\u7d1a\u53ea\u80fd\u6062\u5fa9\u4e00\u6b21\u3002\u5f8c\u8005\u6211\u5728\u5404\u7248\u672c\u4e2d\u5c31\u6c92\u6709\u5099\u4efd\u6210\u529f\u904e\u3002 \u7b2c\u4e8c\u79cd\u65b9\u6cd5\u7576\u7136\u66f4\u6709\u610f\u601d\u3002\u9996\u5148\u4f60\u9700\u8981\u77e5\u9053\u5982\u4f55\u5728 iOS \u8a2d\u5099\u8207\u96fb\u8166\u7d42\u7aef\u9593\u50b3\u8f38\u6587\u4ef6\uff0c\u7136\u5f8c\u5728\u4f60\u7684\u8d8a\u7344\u8a2d\u5099\u4e2d\u9700\u8981\u6709 MobileTerminal \u6216\u8005 OpenSSH\uff0c\u6211\u500b\u4eba\u50be\u5411\u65bc\u5f8c\u8005\u3002 \u5099\u4efd\u7684\u6b65\u9a5f\u5982\u4e0b\uff1a \u5982\u679c\u4f60\u6709\u4f7f\u7528\u7b2c\u4e09\u65b9\u6e90\uff0c\u9700\u8981\u5099\u4efd\u6e90\u5217\u8868\u3002\u5e38\u898b\u7684\u8fa6\u6cd5\u662f\u5099\u4efd \/etc\/apt\/sources.list.d\/ \u4e0b .list \u7684\u6587\u4ef6\uff0c\u4f46\u6211\u6c92\u6709\u89aa\u6e2c\u3002\u6211\u7528\u7684\u662f\u66f4\u7b28\u7684\u65b9\u6cd5\uff0c\u628a\u6e90\u5217\u8868\u622a\u5716\u4fdd\u5b58\u3002 \u5728 MobileTerminal \u6216\u8005 SSH \u4e2d\u9032\u5165 root \u6b0a\u9650\uff0c\u7136\u5f8c\u8f38\u5165\uff1a dpkg -l | grep ^ii | awk ‘{print $2}’ > \/var\/root\/cydiabkup.txt \u7136\u5f8c\u5c07\u751f\u6210\u7684 cydiabkup.txt \u6587\u4ef6\u4fdd\u5b58\u5230\u672c\u5730\u5373\u53ef\u3002 […]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[315],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/posts\/659"}],"collection":[{"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":14,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":709,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/posts\/659\/revisions\/709"}],"wp:attachment":[{"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vern.im\/archive\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}