如何完全备份非生根设备? -- backup 领域 android 相关 的问题

How to fully backup non-rooted devices?


338
vote

问题

中文

我知道我要求近距离 - 因为真正的全备份肯定需要root权限。但仍然存在许多围绕着root设备的人 - 害怕阻止他们的保修或砖块设备,或者只是没有任何生根方法支持的设备。

我也知道有很多问题已经在这个主题上提出了很多问题,我检查了所有有备份标签的所有问题 - 没有涵盖整个主题,只需有碎片,尤其是人们新的Android(但其他非功率用户)会很难弄清楚最好的方法。

所以 我想要一个详细的规范答案 问题:

not 涉及root-solutions,如何尽可能靠近备份到完全备份

请做 not 给出简单的单行答案,如"使用app xyz [全站仪]。如果提及应用程序(并且我怀疑单个应用程序将是答案),请包括它所涵盖的部分 - 以及如何填补它离开的空白的想法。 (并绝对清楚地说明:我知道发出第一件事是钛备份 - 我自己用它,但这是不是在这里申请:这个问题是严格地了解非生根设备的方法!)此外,答案应尽可能在施加到各种设备方面作为通用(即它不应该是限制在一个设备或制造商)。

我已经提到了调查了这里的所有问题标记了备份。这些肯定会有所帮助在此处提供答案的详细信息,因此我将列出关于我的问题的最顶层:

  • 如何备份Android设备?
  • 如何我是否执行了Android手机的完整预生根备份?
  • 谷歌备份是什么信息?
  • 如何在一个大型电话上的数据被备份?
  • 可以是非-Root Android 4.0.3智能手机的ROM备份?
  • 在安装自定义ROM之前,如何备份(并恢复)手机?
  • 备份我的android没有我的应用程序,设置, config's等。

所有这些都为我的问题提供了一些细节(所以可以自由地受到他们的启发) - 但我觉得仍然缺少细节。概述也有助于 - 例如,一个答案,包括"最大可能" 的完整描述。

最后标准:虽然我会考虑基于云的解决方案合法,但我倾向于本地解决方案。如果您可以提供两者:更好。但有些人的价值隐私相当高(我是其中之一),因此不会将他们的数据相信一些云服务。


感谢Ryan,我们现在有一个解决方案的一个真正完全备份的所有应用程序及其数据 - 我不敢希望!唯一的缺点:他的解决方案仅适用于所有Android用户的10%;即,那些设备至少使用 android 4.x

我再一次,我问了近乎不可能的:任何解决方案至少适用于姜饼(2.3.x)或更好,甚至froyo(2.2.x) - 所以它们覆盖大多数当前设备?这些解决方案可能涉及多种工具(尽量保持其简单;想想你的母亲跟随你的指示;)

并记住:无根!


为了进一步激励高质量的答案(并希望避免低质量的答案),我将在这里是一个苛刻的答案:因为我很少做, i 下投票答案不适合一端提到的标准 - 但另一端,我会为最佳答案设置赏金(它不能立即完成,但2天后最早)。< / p>

英文原文

I know I'm asking for the close-to-impossible -- as a real full-backup certainly requires root permissions. But still there are many folks around not wanting to root their devices -- afraid of voiding their warranties or bricking their devices, or just not having their devices supported by any rooting method.

I also know there were a lot of questions asked already on this topic, and I checked all of them having the backup tag -- none covers the entire topic, all just have pieces, and especially people new to Android (but other non-power-users as well) would have a hard time figuring out the best way.

So I want a detailed canonical answer to the question:

Not involving root-solutions, how to achieve a backup as close as possible to a full backup?

Please do not give simple one-liner answers like "Use app xyz [full-stop]." If mentioning an app (and I doubt a single app would be the answer here), include what parts are covered by it -- as well as ideas on how to fill the gaps it leaves. (And to make it absolutely clear: I know the first thing coming to mind is Titanium Backup -- I use it myself, but this does not apply here: This question is strictly about methods for non-rooted devices!) Moreover, the answer should be as generic as possible in terms of applying to a wide range of devices (i.e. it should not be restricted to one device or manufacturer).

I already mentioned having investigated all questions here tagged backup. These will certainly be helpful providing details for answers here, so I will list up the topmost ones concerning my question:

  • How to backup an Android device?
  • How do I perform a full pre-rooting backup of an Android phone?
  • What info does Google backup?
  • How can data on an unrooted phone be backed up?
  • Could a non-root Android 4.0.3 smartphone's rom be backup?
  • How do I back up (and restore) my phone before installing a custom ROM?
  • Backup my Android without my Apps, Settings, Config's, etc.

All these provide some details for my question (so feel free to get inspired by them) -- but I feel there are still details missing. Also it would be helpful to have a summary -- say, an answer including the full description of "the maximum possible".

A last criterium: While I'd consider cloud-based solutions legit, I'd favour local solutions. If you can provide both: all the better. But some people value privacy quite high (I'm one of them), and thus would not trust their data to some cloud service.


Thanks to Ryan, we now have a solution for a really complete backup of all apps and their data -- which I didn't dare to hope for! The only disadvantage: His solution only works for less than 10% of all Android users; namely those whose devices are running at least with Android 4.x.

So again, I ask the close-to-impossible: Any solutions applicable at least on Gingerbread (2.3.x) or, better, even Froyo (2.2.x) -- so they cover the majority of current devices? These solutions may involve multiple tools (try to keep it as simple as possible though; think of your mother to follow your instructions ;)

And keep in mind: NO ROOT!


To further motivate high-quality answers (and hopefully avoid low-quality ones), I will be a harsh one here: As I rarely do, I will down-vote answers not fitting the mentioned criteria on one end -- but on the other end, I will setup a bounty for the best answer (which cannot be done immediately, but earliest after 2 days).

  
     
     

回答列表

265
 
vote
vote
最佳答案
 

可用于4.0+设备的解决方案:

对于4.0+设备,有一个名为"adb备份" 的解决方案。

注意:这仅适用于不禁止备份的应用程序! 使用这种方式创建备份时,简单地忽略禁止备份的应用程序。

这是使用adb,因此您必须拥有 Android软件开发套件(SDK)安装在您的计算机上(在某些Linux发行版上:只需包装 android-tools-adb android-tools-adbd

)。

注意:此解决方案不会备份和恢复联系人,短信或日历信息

adb命令的选项是:

  adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|nosystem] [<packages...>]   
  • -f:将保存在计算机上的* .ab文件的路径。此文件是一个压缩文件,包含设备的数据/ apks存档。
  • -apk | -noapk:表示应该备份* .apk文件(默认为-noapk)
  • -obb | -noobb:启用/禁用与每个应用程序关联的任何安装的apk扩展的备份(aka .obb)文件(默认为-noobb)
  • -shared | -NOSHARED:启用/禁用设备的共享存储/ SD卡内容的备份(默认为-NOSHARED)
  • - 所有:表示您希望整个系统备份。您可以使用Packages Filter仅备份特定包,或用于完整的系统备份。
  • -System | - 系统:表示备份时是否包含所有系统应用程序和数据。 (默认为-System)
  • &lt;包装&gt; :这是您可以列出要备份的特定包的位置。如果要备份特定的应用程序,请使用这些。如果使用 - 所有,则无需指定包。

如何备份设备:

首先,您需要在Android设备上启用"USB Debugging" :
  1. 转到"关于设备" (或"关于手机" 或"关于平板电脑" )部分中的设置
  2. 在"构建号码" 行(通常是最后一行)上点按7次。之后"开发人员选项" 部分将出现在设置

启用"开发人员选项"

  1. 转到设置
  2. 中的"开发人员选项" 部分
  3. 点击"USB调试" 复选框

启用"USB调试"

第二,在您的PC上从命令提示符上,您需要能够找到 rfolder0 命令和备份文件。这样做的最简单方法是从来自目录运行 abcdefghijklmnabcdefghijklmnrfolder1 命令,其中 rfolder2 所在的目录。

在Windows资源管理器中导航到安装Android SDK和 AbcdefghijklmnabCdefghijklmn13 abcdefghijklmn14 文件夹上的位置。 shift + lightclick

这将打开命令提示符(您的窗口看起来与我的不同)。

在MAC的终端中,您可以在"<代码" >"ABCDEFGHIJKLMN15 中" 键入 abcdefghijklmn15 ,然后将文件夹 platform-tools 文件夹从查找器拖到终端窗口,路径将插入路径。击中,你将在正确的地方。

在Linux中,我希望您知道如何将CD定位到adb命令的父目录中。毕竟,您正在使用 linux

从此键入以下命令:

Windows:

  rfolder6  

Linux&amp; Mac

  rfolder7  

(如果要将备份存储在不同的目录中,请在下面的屏幕截图中包含".ab" 文件的路径。)

cmd

然后,您将在您的设备上提示您输入密码(这用于加密备份):
backup屏幕

要恢复,它几乎与之一样。

Windows:

  rfolder8  

Linux&amp;苹果电脑

  rfolder9  

然后,系统将提示您输入要在设备上还原的密码: 恢复屏幕


现在为无耻的自我推广:

droid资源管理器( v0.8.8.7 +)将能够 Andle这是4.0+设备。 虽然DROID Explorer目前针对扎根设备进行了优化,但此功能也适用于非生根设备。

droid资源管理器将完成设备的完整备份,并将其保存在 lfolder0 中。 在该文件夹中是一个名为设备的文件夹,并且在该文件夹中的内部是备份。

de backup

双击android备份文件将允许您从备份文件中还原设备。

 

Solution Available for 4.0+ Devices:

For 4.0+ devices there is a solution called "adb backup".

Note: This only works for apps that do not disallow backup! Apps that disallow backup are simply ignored when creating a backup using this way.

This makes use of adb so you have to have the Android Software Development Kit (SDK) installed on your computer (on some Linux distributions: just packages android-tools-adb and android-tools-adbd).

NOTE: This solution will not back up and restore contact, SMS or calendar information

The options for the adb command are:

adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|nosystem] [<packages...>] 
  • -f : the path of the *.ab file that will be saved on your computer. This file is a compressed file that contains an archive of the data/apks from your device.
  • -apk|-noapk : indicates if the *.apk files should be backed up (default is -noapk)
  • -obb|-noobb : enable/disable backup of any installed apk expansion (aka .obb) files associated with each application (default is -noobb)
  • -shared|-noshared: enable/disable backup of the device's shared storage / SD card contents (default is -noshared)
  • -all : indicates that you want the entire system backed up. you can use the packages filter to just backup specific packages, or use -all for a full system backup.
  • -system|-nosystem: indicates if all the system applications and data are included when backing up. (default is -system)
  • <packages> : this is where you can list specific packages to backup. Use these if you want to back up only specific applications. If using -all, you do not need to specify packages.

How to backup your device:

First, you need to enable "USB debugging" on you Android device:

  1. Go to "About device" (or "About phone" or "About tablet") section in Settings
  2. Tap 7 times on "Build number" row (usually the last row). After that "Developer options" section will appear in Settings

Enabling "Developer options"

  1. Go to "Developer options" section in Settings
  2. Tap the "USB Debugging" checkbox

Enabling "USB Debugging"

Second, on your PC from the command prompt you will need to be able to locate both the adb command and your backup file. The easiest way to do this is to run the adb command from the directory where adb is located.

In Windows Explorer navigate to where you installed the Android SDK and SHIFT+RIGHT CLICK on the platform-tools folder. shift+rightclick

This will open a command prompt (your window will look different than mine).

In Mac's Terminal you can type cd and then drag the folder platform-tools folder from finder to the terminal window and the path will be inserted. Hit and you will be in the right place.

In Linux, I hope you know how to locate and cd to the parent directory of the adb command. You are using Linux after all.

From here type the following command:

Windows:

adb backup -apk -shared -all -nosystem -f backup08262012.ab 

Linux & Mac

./adb backup -apk -shared -all -nosystem -f backup08262012.ab ## Notice that -all doesn't mean ALL. See the big bold NOTE at the top of this answer. # drop the `./` in the command if you are using `android-tools-adb` package 

(if you want to store the backup in a different directory, include a path for the ".ab" file as shown in the screenshot below.)

cmd

You will then be prompted on your device for a password (this is used to encrypt the backup):
backup screen

To restore, it works almost the same way.

Windows:

adb restore backup08262012.ab 

Linux & Mac

./adb restore backup08262012.ab 

Then you will be prompted for your password to restore on the device: restore screen


Now for the shameless self promotion:

Droid Explorer (v0.8.8.7+) will be able to handle this for 4.0+ devices. While Droid Explorer is currently optimized for Rooted devices, this functionality will work for non-rooted devices as well.

Droid Explorer will do full backups of the device and save them in %USERPROFILE%\Android Backups\. Within that folder is a folder named for the device, and inside that folder are the backups.

de backup

Double clicking on the Android Backup file will allow you to restore your device from the backup file.

 
 
       
       
34
 
vote

有一个名为简单的adb备份

输入图像描述

简单的adb备份从桌面备份您的Android手机,无需根。大多数Android备份工具都需要root,或从手机运行,并将您的数据保存到您的SD卡。简单的adb备份是不同的。该应用程序从并备份手机的数据到桌面,并没有root。

要使用简单的adb备份,您需要在Android设备上启用USB调试模式(转到Settings&gt; Developer,启用开发人员选项,然后启用USB调试)和桌面上安装的实用程序。这就是它:只需插入手机,在Windows或Linux系统上启动应用程序,然后选择备份选项。您可以选择备份整个设备,只需应用程序,只有或没有系统应用程序的所有数据,甚至是单个应用程序,如果选择。

应用程序还允许您将备份数据恢复到您的设备。在备份之前,系统会提示您生成密码,您还必须在备份开始之前在手机上键入应用程序,但在此之后,该过程运行顺利。它非常简单,完全免费,不要求您先扎根。

如果您愿意root 't想要一个桌面作为中间人,但简单的adb备份是免费的,显然很容易使用即使是Android初学者也可以轻松快速地备份他们的重要数据。

在XDA开发人员论坛上免费发布简单的adb备份。点击下面的链接下载它。

http://forum.xda-developers.com/showthread.php? p = 36499906

请注意:这是目前仍处于beta

的新应用程序
 

There is an application called Simple ADB Backup.

enter image description here

Simple ADB Backup Backs Up Your Android Phone from the Desktop, No Root Required. Most Android backup tools require root, or run from your phone and save your data to your SD card. Simple ADB Backup is different. The app runs from and backs up your phone's data to your desktop, and does it all without root.

To use Simple ADB Backup, you'll need USB Debugging Mode enabled on your Android device (Go to Settings > Developer, enable developer options, then enable USB debugging) and the utility installed on your desktop. That's about it: just plug in your phone, launch the app on your Windows or Linux system, and choose a backup option. You have the option to back up your entire device, just apps, all data with or without system apps, or even a single app if you choose.

The app also lets you restore backed up data to your device. Before you back up, you'll be prompted to generate a password you'll also have to type into the app on your phone before the backup can begin, but after that, the process runs smoothly. It's extremely simple, completely free, and doesn't require you root first.

Whilst Titanium Backup is a more feature-filled app if you're willing to root (especially if you want a bulletproof backup system for your Android), and MyBackup Pro is great if you're migrating to a new phone and don't want a desktop as a middleman, but Simple ADB Backup is free and apparently so easy to use that even Android beginners can easily and quickly back up their important data.

Simple ADB Backup was released for free over at the XDA Developer forums. Hit the link below to download it there.

http://forum.xda-developers.com/showthread.php?p=36499906

Please Note: This is a new application currently still in Beta

 
 
         
         
25
 
vote

技术上,您可以创建完整的NANDROID BACKUP ,而无需引起设备。您只需要通过USB闪存CWM(或支持支持Nandroid备份的任何恢复)。例如,您可以使用ODIN(Windows)在进入下载模式后将CWM闪存到Samsung设备,所有都没有触摸Android。因此,根本没有涉及的根或root访问权限。

 

Technically, you CAN create full Nandroid backup without rooting the device. You just need to flash CWM (or, any recovery which supports Nandroid backup) over USB. For example, you can use Odin (Windows) to flash CWM to Samsung devices after going to download mode, all without touching the Android. So, there's no rooting or root access involved at all.

 
 
         
         
19
 
vote

koushik dutta(Aka Koush Aka Mr. Clockworkmod)发布了氦备份,即使在没有计算机和USB电缆的情况下也应该使整个事情成为可能:

碳备份

氦备份应该能够将应用程序和数据备份到SD卡,附加USB设备,Dropbox,Google Drive或Box。

这不是一个"完全备份" ,就到了系统设置,但它恢复应用程序设置和数据。它备份内部存储(用户文件),因此您必须单独备份这些文件。

如果您发现自己无法在还原列表中看到备份,则某些备份元数据可能已在翻译中丢失。备份本身仍然可以恢复,但你需要一些额外的腿工作要得到它们。

编辑:用于在氦气的使用情况下的全方位运行方式,请参阅如何使用氦Android App 备份没有root的应用程序和数据(谢谢Simon!)。在抱怨任何内容之前,请确保您使用氦维基(感谢 goleimar 指向这一点!)。

 

Koushik Dutta (aka Koush aka Mr. ClockworkMod) has published Helium Backup, which should make the entire thing possible even without the need of a computer and USB cable:

Carbon Backup

Helium Backup should be able to backup apps and data to SD card, attached USB devices, Dropbox, Google Drive or Box.

This isn't a "full backup" in so far as it comes to system settings, but it does restore application settings and data. It does not backup your internal storage (the user files), so you'll have to backup those files separately.

If you find yourself unable to see your backups in the restore list, some of the backup metadata may have gotten lost in translation. The backup themselves can still be restored, but you'll need some extra leg work to get them.

Edit: For a full-fledged how-to on the usage of Helium, please see How to Backup Apps and Data without Root using Helium Android App (thanks for the hint, Simon!). And before complaining on anything, make sure you've checked with the Helium Wiki (thanks to golimar for pointing this out!).

 
 
         
         
11
 
vote

这个答案不是暗示你亲爱的读者希望但是我的真实世界测试结果:

adb backup 远非完整的,在Nexus 3上,无论是在一个大型的股票和谐4.3下,如果在Cyanogenmod 10.1.3上使用adb根root运行!


一些事情恢复了,几乎没有!我检查了一些特征的恢复:

未恢复:基本上所有的关键电话功能:联系人,短信,铃声&amp;通知声音,激活的输入语言(= kbd布局),unnername(首次引导向导中设置的ounermame设置为保存)

正确恢复:自定义词汇,壁纸,发射器图标位置,应用程序及其设置。


这些是我的要求,这将我带到了主题:

  1. Android隐私
  2. 物理安全< / a>以防止通过下载驱动( pdf ),意思:
    • 引导程序锁定,库存恢复,adb关闭
    • 更安全:全磁盘加密
  3. 完整的本地备份,没有云备份(这个非常主题的主题在这里)

cyanogenmod 情况有点不同:SMS完全恢复,但联系人和呼叫日志仍未恢复。即使adb备份和恢复,其中adb与adb通过 adb root 运行root。


所以我会尝试使用自定义ROM,带有root(以获得一些额外的功能),锁定的引导加载程序,自定义恢复,并且只临时刷新恢复(从根本设备与 flash_image ,但对我来说失败了,超过),从中,我从中做nandroid备份(或短信/呼叫日志/联系人的adb备份+特殊备份解决方案)加自定义ROM更新。
 

This answer is not the hint you dear readers hoped for but the result of my real world tests:

adb backup is far from complete, on a Nexus 3, both under an unrooted stock Android 4.3 and if run with adb root on Cyanogenmod 10.1.3!


A few things are restored, a few not! I checked restoration of some features:

NOT RESTORED: basically all the key telephony features: Contacts, sms, ringtone&notification sound, activated input languages (=kbd layouts), ownername (ownername set in first boot wizard is kept instead)

PROPERLY RESTORED: Custom vocabulary, wallpaper, launcher icon positions, apps and their settings.


These were my requirements, which brought me to the topic:

  1. Maximization of Android privacy
  2. Physical security to prevent drive by downloads (PDF), meaning:
    • bootloader locked, stock recovery, ADB off
    • even more secure with: full disk encryption
  3. Full local backup, no cloud backup (topic of this very thread here)

On Cyanogenmod the situation was a little different: SMS were completely restored, but contacts and call logs still not restored. Even when adb backup and restore where ran with an adb running as root through adb root.


So I will try to use a custom ROM, with root (to get some extra features), a locked bootloader, custom recovery, and only flash the recovery temporarily (theoretically possible from the rooted device with flash_image, but for me this failed too), from which I then do NANDROID backups (or adb backup + special backup solutions for sms/call-logs/contacts) plus custom ROM updates.

 
 
8
 
vote

我们可以在不使用任何应用程序的情况下备份我们的设备,也可以在没有根根手机的情况下进行。

Android包含一个内置的方法来备份和恢复手机或平板电脑的内容。所有您需要的是计算机和运行Android 4.0(冰淇淋三明治)或更新的设备。

转到 adt-bundle-windows-x86sdkplatform-tools 文件夹并在此处打开命令promt。

  1. 确保启用USB调试。

  2. 检查您的设备是否通过运行" adb device " 来连接。

  3. 现在
  4. 现在执行" adb backup -apk -shared -all -f C:UsersUserNameackup.ab " 。

  5. 解锁您的设备,提供enclytion密码和整个 设备将被备份。

  6. 重新恢复只需执行" adb restore C:UsersUserNameackup.ab " 。

我已经用屏幕截图为同一个这里。希望这有助于!

 

We can take the backup of our device without using any apps or without rooting our phone.

Android includes a built-in way to back up and restore the contents of your phone or tablet. All you need is a computer and a device running Android 4.0 (Ice Cream Sandwich) or newer.

Go to adt-bundle-windows-x86\sdk\platform-tools folder and open command promt here.

  1. Make sure USB Debugging is Enabled.

  2. Check that your device is connected by running "adb device".

  3. Now execute "adb backup -apk -shared -all -f C:\Users\UserName\backup.ab".

  4. Unlock your device, provide encrpytion password and your whole device will be backed up.

  5. To restore again simply execute "adb restore C:\Users\UserName\backup.ab".

I have written step by step procedure with screen shots for the same here. Hope this helps!

 
 
 
 
7
 
vote

我对另一个(复杂)的答案感到有点惊讶。也许我误解了这个问题,所以有这种感觉会评论和投票相应。

  1. 根据定义,一个完整的备份(包括ROM,APP和数据)称为 nandroid backup 。因此,问题在询问"我如何在我的未加速设备上进行Nandroid备份" 。
  2. 您不需要扎根设备可以进行NANDROID备份。 nandroid备份通常通过自定义恢复(如twrp或clockwordmod)完成,这些恢复并不总是需要安装rooted设备。例如,可以安装使用adb twrp,按这里的方向 。可以暂时加载自定义恢复,从而保留库存恢复(以及您的保修;对于TWRP,这可以用 abcdefghijklmnfastboot boot twrp*.img 在步骤4中替换 abcdefghijklmnabcddefghijklmn0 链接教程)。有些设备要求引导加载程序解锁以安装自定义恢复,但其他设备没有。请注意,解锁引导加载程序通常会出厂 - 重置您的设备。
 

I'm a bit surprised by the other (complicated) answers. Maybe I've misunderstood the question so feel free to comment and vote accordingly.

  1. By definition a full backup (including ROM, apps and data) is called a Nandroid backup. Therefore the question is asking "how do I do a Nandroid backup on my unrooted device".
  2. You do not need a rooted device to be able to do a Nandroid backup. Nandroid backups are usually done through a custom recovery (like TWRP or Clockwordmod) which do not always need a rooted device to install. For example using ADB TWRP can be installed, as per the directions here. It may be possible to temporarily load a custom recovery, thus preserving the stock recovery (and your warranty; for TWRP this can be done replacing fastboot flash recovery twrp*.img with fastboot boot twrp*.img in step 4 of the linked tutorial). Some devices require the bootloader to be unlocked to install a custom recovery, others do not. Note that unlocking the bootloader usually factory-resets your device.
 
 
         
         
7
 
vote

"完全备份" 似乎是Android World中非常过载的术语。允许我首先定义它(释放评论):

完整备份是将系统状态恢复到备份时的任何备份。 〜Izzy(OP)

因此,显而易见的后续问题应该是:从什么恢复您的状态?
  • 方案0:您的手机在物理损坏。
  • 方案1:您的整个驱动器(EMMC)已被消隐。
  • 方案2:您只能引导到USB闪存模式,如Fastboot / Odin。
  • 方案3:您可以启动进入FastBoot和您的(自定义?)恢复
  • 方案4:您的手机已重置为出厂模式。您有正常的巨大功能。
  • 情景5:您意外删除了您最喜欢的猫壁纸图像。
  • 等。

这些方案中的每一个都可以具有不同的备份解决方案。 完整备份必须能够解决所有这些。当然,我用破碎的手机场景(0)来搞定一点,但它指出了这种规范问题的缺点。这反映了许多人和公司倾向于过度简化并忽略最重要的部分:恢复。

认为,在Android社区中,它暗示了硬括号(0&amp; 1)是纸重量;你有望收到一部新手机。所以让我们将剩余的备份解决方案划分为2类:

  1. 开发人员恢复(2+)。
    通常涉及使用NANDROID(大多数分区的扇区副本),也许可以重新闪烁自定义恢复。位技术。可能会影响保修。
  2. 消费者恢复(4+)。
    通常恢复应用程序和数据,包括您的猫照片。部分恢复可以在不同的模型上工作。

两者都可以被认为是他们用例的完整备份。让上下文确定是否有人要求完整备份想要选项1或2.在场景3和4之间有一点灰色区域(3.5?),例如,如果用户从 /system 分区中删除文件,则还原方法可能取决于缺少的内容。

要小心消费者恢复

基于 adb backup 基于 abcdefghijklmn1 的最高投票答案是可以恢复应用程序和数据的消费者还原,其中一些警告:

  • 似乎省略了一些文件
  • 变量结果取决于ROM(例如,在一些索尼模型上不起作用,省略Cyanogenmod VS TouchWiz上的不同项目)。
虽然最近在奥雷奥中有很小的改进(xda新闻) 我仍然无法确认它是否可以将所有用户文件复制,如照片和音乐从PC复制。

用于开发恢复,您想要nandroid。

you 不能在没有生根或使用恢复的情况下获得完整的NANDROID。一个例外可能是SD卡的图像,给你一个部分Nandroid。因此,您必须冒险安装图像或临时生根,或等到OEM提供更好的恢复。

记住使用像日期和分区的重要信息一起命名备份。

您不必备份您不介意重新创建

nandroid通常不包括恢复,因为它们通常从恢复施加,因此它是冗余的。但如果你的设备搞砸了,你的康复消失了,你可能会恐慌,认为你没有恢复它,所以没有什么可以恢复。但它往往是简单的下载,然后用USB闪存工具重新安装恢复(例如fastboot)。

同样,如果您在云中存储联系人,通常不需要将它们备份。恢复后再次同步。

请记住,完整备份取决于您要从中恢复的内容。我描述的"消费者水平" 没有完美的解决方案。在欧盟/亚洲国家,人们不太担心拒绝保修时,如果存在,很少没有安装自定义恢复。
 

A "full backup" seems to be a very overloaded term in the Android world. Allow me to first define it (paraphrasing a comment):

A full backup is anything that will restore your system state to when you made the backup. ~Izzy (OP)

So the obvious follow-up question should be: restore your state from what?

  • Scenario 0: Your phone is physically broken.
  • Scenario 1: Your entire drive (eMMC) has been blanked.
  • Scenario 2: You can only boot into a USB flash mode like fastboot/ODIN.
  • Scenario 3: You can boot into fastboot AND your (custom?) recovery
  • Scenario 4: Your phone has been reset to factory mode. You have normal unrooted functionality.
  • Scenario 5: Your accidentally deleted your favorite cat wallpaper image.
  • Etc.

Each of these scenarios can have a different backup solution. A full backup would have to be able to address all of them. Of course I'm trolling a bit with the broken phone scenario (0), but it points out how ill-defined this canonical question is. This reflects the fact that many people and companies tend to oversimplify backing up and ignore the most important part: restoring.

Consider that in the Android community it is implied that hardbricks (0 & 1) are paperweights; you're expected to get a new phone. So let's divide the remaining backup solutions into 2 categories:

  1. Developer restores (2+).
    Typically involves using a Nandroid (sector copy of most partitions) and maybe re-flashing a custom recovery. Bit technical. May affect the warranty.
  2. Consumer restores (4+).
    Typically restores apps and data, including your cat photos. Partial restores could work across different models.

Both can be considered full backups for their use cases. Let the context determine if someone asking for a full backup wants option 1 or 2. There's a bit of gray area (3.5?) between scenario 3 and 4, e.g. if a user deleted files from the /system partition the restoration method may depend on what is missing.

Beware consumer restores

The current most highly voted answer based on adb backup is a consumer restore that can restore apps and data, with a few caveats:

  • Seems to omit some files
  • Variable results depending on the ROM (e.g. doesn't work on some Sony models, omits different items on CyanogenMod vs TouchWiz).

Though recently in Oreo there have been small improvements (XDA news) I still can't confirm if it can copy all user files like photos and music copied from your pc.

For a dev restore, you want a Nandroid.

You can't get a full Nandroid without either rooting OR using a recovery. An exception is perhaps an image of your SD card, giving you a partial Nandroid. So you have to risk installing an image or temporarily rooting, or wait until OEMs offer better recoveries.

Remember to name your backups with important information like date and partitions included.

You don't have to back up what you don't mind recreating

A Nandroid typically doesn't include a recovery, because they are usually applied from a recovery so it is redundant. But if your device is messed up and your recovery is gone you might panic, thinking you didn't back it up so there's nothing to restore. But it is often simple to download and then reinstall the recovery with a USB flash tool (e.g. fastboot).

Similarly, if you store your contacts in the cloud, there is usually no need to back them up. Just sync again after restoring.

Remember, a full backup depends on what you want to recover from. There is no perfect solution at the 'consumer level' I've described. In EU/Asian countries, where people aren't so worried about denial of warranty, there is little reason not to install a custom recovery if it exists.

 
 

相关问题

4  备份联系人,照片,应用程序,删除Google帐户,并替换为虚拟帐户  ( Backup contacts photos apps remove google account and replace with dummy acc ) 
我想从手机上取消我的主要Google帐户,而不是使用虚拟帐户。我并不真正使用Google,语音等的任何谷歌的服务,以获得安全性,丢失原因,防止谷歌自动为我提供"功能" 和同步,最终以我没有的方式合并数据想要,我宁愿将我的在线谷歌帐户与我的手机分开。我一直在阅读一些关于如何备份或删除帐户的帖子,但我想在前进之前了解一些...

31  通过adb备份和恢复Android设置和应用程序  ( Backup and restore android settings and application through adb ) 
我想询问是否有可能通过adb备份和恢复所有Android设置和应用程序。 我试过: adb backup -all adb: unable to connect for backup 它不起作用,而所有其他命令都在工作。 是可以使用这个 bmgr ...

5  恢复rom备份  ( Restore a rom back up ) 
我要在我的手机上试试yananogenmod。然而,在我这样做之前,我对一件事很好奇。我执行了一个NANDROID备份,每个我在本网站上收到的指令(谢谢BRYAN),以及所有我的应用程序和数据的钛备份。我对的是 - 说我真的搞砸了在Cyanogenmod过程中的东西吗?我该如何从中恢复?从我自己的研究来看,它看起来像...

1  如何在SIM卡上备份联系人到我的电脑?  ( How can i backup contacts on a sim card to my computer ) 
我的兄弟要我在他的SIM卡中备份数据。如何将此复制到我的计算机而不弄乱我自己的联系人? ...

1  使用Skydrive或Dropbox将我的Android设备备份到云端,同样有效地使用专用备份应用程序?  ( Is backing up my android device to the cloud using skydrive or dropbox equally a ) 
与使用MS Skydrive或Dropbox备份我的Android智能手机(无根)备份我的应用程序,照片,联系人,短信文本等,与使用Google Play商店的专用备份应用程序,例如我的备份亲吗?情况是,如果使用专用应用程序,则该情况如此有效,但过程更简单,耗时较少,耗费耗时。 这适用于一般备份和备份,以便在升级到新...

50  adb backup创建0字节文件;即使我从未设置为一个,也会提示当前备份密码; “无法设置密码”桌面备份密码  ( Adb backup creates 0 byte file prompts for current backup password even though ) 
问题: 每次运行adb备份时,我会在主屏幕底部附近的消息说 Backup starting... ,后跟一条消息,然后是一条消息,然后是一条消息 Backup finished 几秒钟后来尽管我正在使用17 GB的设备内存,并且使用0个字节的大小创建生成的备份文件。我没有收到错误消息,没有反馈,无论是什么都是错误的...

2  适用于Android手机(无计算机)建议使用哪些备份/同步应用程序? [关闭]  ( What backup sync app is recommended for android phones without computer ) 
关闭。这个问题是 off-topic 。它目前不接受答案。 想要改进这个问题?更新这个问题,所以它是关于android爱好者堆栈交换的主题。 关闭 ...

1  如何通过adb备份和恢复APN设置?  ( How to backup and restore apn setting via adb ) 
如何通过adb备份和恢复APN设置? 我在没有root的Android 6.0上。 ...

0  恢复WhatsApp聊天和数据  ( Restore whatsapp chat and data ) 
我最近闪过我的xperia z2,在闪烁之前,我拍摄了手机​​内部内存的备份,留下了一种令人印象来自动恢复WhatsApp数据。但在闪烁的过程完成后,我再次安装WhatsApp,我没有看到以前的消息或数据。 有人对此有任何想法。 任何帮助将非常感激。 ...

23  新手机:如何转让游戏进展?  ( New phone how to transfer game progress ) 
我打算买一个新的Android手机,我希望能够转移我在几款游戏中的进展到新设备,所以我不必再次从头开始播放所有级别。 我目前有一个htc欲望,并将购买HTC EVO 3D。 可能没有简单/一般的解决方案。 但我想知道是否有人做了类似的事情,可以提供一些建议(例如,在哪里寻找可能保存游戏进度信息的文件)。 ...

43  有没有办法查看内部并修改adb备份创建的文件?  ( Is there a way to look inside and modify an adb backup created file ) 
我创建了我的Galaxy Nexus的备份,其中 adb backup 。生成的文件名为backup.db,它是某种方式加密。 我想恢复备份,但它在恢复 com.android.providers.contacts 时停止。我使用 adb logcat ,了解正在发生的事情,并发现 com.android.acore...

6  如何使用Yaffs2访问.img文件?  ( How do i access img files with yaffs2 ) 
我已经尝试在Ubuntu中安装它们,没有运气, mount 无法识别Yaffs2文件系统。我尝试了 yaffs2utils 和 ./unyaffs2 但它实际上并没有解压缩IMG文件,我在Google代码页 here 。 IMG文件是由CWM恢复为备份创建的,我正在尝试挖掘文件系统以查找旧联系人,如果我可以获得.d...

1  Android 5.1 adb备份与Android 6.0不兼容吗?  ( Is an android 5 1 adb backup incompatible with android 6 0 ) 
我最近在我的nexus 4上加载了cyanogenmod 13.在闪烁之前,我做了一个完整的adb备份和com.king.candycrushsaga的app数据备份。似乎需要恢复的唯一仍然是烛台数据,但亚行恢复似乎没有做这项工作。它只是在/ sdcard / android / data中创建一个空文件夹。 我使用...

0  如何将我的所有联系人从旧的HTC WildFifre Android 2.1转移到LG Optimus Vu  ( How can i transfer my all contacts from old htc wildfifre android 2 1 to lg opti ) 
我只想用Android版本2.1与Android版本为4.0的新LG Optimus Vu转移所有联系人。我使用了不同的应用,但我仍然无法传输联系人和意外错误发生。另一个问题是我无法将联系人移动到SD卡,因为LG Optimus Vu不支持SD卡。请推荐一个简单且简单的方法或应用程序,有助于将联系人从HTC Wild...

3  为什么我的手机在执行备份时会陷入困境?  ( Why does my phone keep getting stuck when performing a backup ) 
我扎根了我的手机,目前在My Sprint HTC Hero上有一个较旧版本的紫花底mod。当我尝试使用ROM管理器执行备份时,手机尝试重新启动,但它永远不会完成启动。任何导致它以及如何备份手机的想法,以便升级到最新版本的紫绀? ...




© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有


Licensed under cc by-sa 3.0 with attribution required.