如何备份Android设备? -- backup 领域 和 restore 领域 和 remote-control 领域 android 相关 的问题

How to backup an Android device?


73
vote

问题

中文

任何人都可以推荐备份Android设备的好方法吗?
理想情况下,我想无线地执行此操作,不仅备份我的数据,还要备份我的用户设置。是否可以备份Android设备的图像 - 以便甚至不需要重新安装应用程序?
听到已恢复备份的用户是特别有用的,以及他们的流程有多简单,更完整。 谢谢

英文原文

Can anyone recommend a good way to backup Android devices?
Ideally I would like to do this wirelessly and, not only backup my data, but also my user settings. Is it possible to backup an image of an Android device - so that one doesn't even need to reinstall apps?
It would be particularly useful to hear from users that have restored backups, as to how easy, and complete, their processes were. Thanks

        
   
   

回答列表

11
 
vote

如果您想执行基本上是您的设备的1比1备份,您可以使用自定义恢复来创建"NANDROID" 备份。这样做有效创建NAND分区的磁盘映像(因此"NANDROID" ),您可以在稍后的点中恢复。这将由设备和恢复系统有所不同,但通常如果要执行手机内存的完整备份,则需要:

  • root您的设备并安装自定义恢复。最受欢迎的恢复可能是 ClockworkMod 。您如何安装它将被设备差异,但 rom manager 可以做到在最受欢迎的设备上。您只需启动ROM Manager并从主菜单中选择"Flash ClockworkMod恢复" 。

  • 如果使用ClockWorkMod,请打开ROM管理器并选择"备份当前ROM" 。这应该为你做所有的工作。

  • 如果不使用ROM Manager 如果您使用的恢复而不是ClockWorkMod:

    • 将设备重新启动到恢复模式。这再次因设备而异,但ROM Manager有一个"重新启动进入恢复" 选项,可在上工作,无论您安装的恢复如何。另一种选择是从带有ADB配置和设置的已连接PC发出<代码> ABCDeFGHIJKLMNABCDEFGHIJKLMN5 。根据您的设备,可能还有其他要求进行恢复(例如,Kindle Fire与他人的点燃非常不同)。
    • 导航到"备份/恢复" 或"nandroid" 菜单(或类似)。
    • 选择"备份" 和(如果需要)选择要备份的哪个分区。一些恢复也将为您提供压缩备份的选项。
    • 选择"执行备份" (或类似)并等待进程完成。

一旦备份已经执行,您应该能够使用它来从许多"软" 砖中恢复。但是,您无法单独使用备份的两种情况将是:

  • 您的引导加载程序是无效/损坏的/ etc
  • 您的恢复分区是无效/损坏的/ etc

在两个方案中,您将首先需要修复违规分区(引导加载程序或恢复),然后再能够恢复备份。基本上,阻止您访问恢复分区的任何东西都将阻止您使用恢复来恢复备份。这样的情况是,我会说,相当罕见。你 can 使用备份来恢复一个坏的 /boot /system 分区,因此闪烁内核或rom应该具有极小的永久砖的可能性非常小的可能性您的设备(除非它修改您的恢复或引导加载程序,如上所述)。

you 可以能够从 fastboot 刷掉未压缩的备份,但这取决于您使用的恢复以及它如何执行其备份。正如我回忆,ClockWorkMod只是使用 dd 创建图像,他们实际上将在某些设备上正确闪光。但是,我会强烈建议在尝试之前研究这一点,因为一个糟糕的快速写作可以软砖。当然,只要你不尝试过度保护你的引导加载程序,你就不会丢失对<代码> adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale ,所以在某些方面,这可能是"没有任何冒险,没有任何增加" 的情况。

实际还原您可以的备份:

  • 在ROM Manager中选择"管理和还原备份" ,然后选择要从中恢复的备份。
  • 如果不使用rom manager 不使用clockworkmod:

    • 重新启动恢复
    • 选择"备份/恢复" 或"nandroid" (或类似)
    • 选择"恢复"
    • 选择要从(如果超过一个)
    • 的备份
    • 选择要恢复的分区(如果givent选项)
    • 选择"恢复" 并等待完成完成
默认情况下,

nandroid备份在几个情况下存储在外部存储设备上。某些例外可能是没有单独的外部存储的设备(例如,Galaxy Nexus等设备),其中 adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale1 目录实际上是在物理内部存储上。但是,在任何情况下,它将保存到您的 adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale2 目录,它可从PC可读为USB大容量存储或 Abcdefghijklmnabcdefghijklmn13 。你可以复制一个nandroid 关闭手机并进入计算机以进行安全保留,然后如果需要还原,请将其复制回后。

要执行此操作,您可以简单地插入您的设备并查找像 adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale4 (或 adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale5 for teamwin恢复,可能是其他地方)。 然后,您可以将文件夹的内容复制到您的计算机上。 或者,您可以通过插入设备并发出类似于:
  adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale7  

...从PC shell。

 

If you want to do what is essentially a 1-to-1 backup of your device, you can use a custom recovery to create a "nandroid" backup. Doing so effectively creates disk images of your NAND partitions (hence "nandroid") that you can restore from at a later point. This is going to vary a bit by device and recovery system, but in general if you want to perform a full backup of your phone's internal memory you would need to:

  • Root your device and install a custom recovery. The most popular recovery is probably ClockworkMod. How you install it will vary widely by device, but ROM Manager can do it for you on most popular devices. You simply launch ROM Manager and select "Flash ClockworkMod Recovery" from the main menu.

  • If using ClockworkMod, open ROM Manager and select "Backup current ROM". This should do all of the work for you.

  • If not using ROM Manager or if you use a recovery other than ClockworkMod:

    • Reboot your device into recovery mode. This again varies by device, but ROM Manager has a "Reboot into recovery" option that works regardless of what recovery you have installed. Another option is to issue adb reboot recovery from a connected PC with ADB configured and set up. There may be other requirements for getting into recovery depending on your device (e.g. the Kindle Fire is very different from others).
    • Navigate to the "Backup/Restore" or "Nandroid" menu (or similar).
    • Select "Backup" and (if needed) select which partitions you would like to back up. Some recoveries will also give you the option to compress the backup.
    • Select "Perform backup" (or similar) and wait for the process to finish.

Once the backup has been performed you should be able to use it to recover from many "soft" bricks. However, the two situations you would not be able to recover from with a backup alone would be:

  • Your bootloader is invalid/corrupted/etc
  • Your recovery partition is invalid/corrupted/etc

In both of thse scenarios, you would first need to fix the offending partition (bootloader or recovery) before being able to restore the backup. Basically, anything that prevents you from accessing your recovery partition will also prevent you from using your recovery to restore your backup. Such situations are, I would say, fairly rare. You can use a backup to recover a bad /boot or /system partition, so flashing a kernel or ROM should have an extremely small likelihood of permanently bricking your device (unless it modifies your recovery or bootloader, as noted above).

You may be able to flash an uncompressed backup from fastboot but this would depend on what recovery you are using and how it performs its backups. As I recall, ClockworkMod simply uses dd to create the image and they actually will flash correctly on some devices. However, I would strongly advise researching this before trying as a bad fastboot write could soft brick you as well. Of course, as long as you don't try to overwite your bootloader you won't lose access to fastboot, so in some ways this could be a "nothing ventured, nothing gained" situation.

To actually restore a backup you can:

  • In ROM Manager select "Manage and Restore Backups", then select the backup you wish to restore from.
  • If not using ROM Manager or not using ClockworkMod:

    • Reboot into recovery
    • Select "Backup/Restore" or "Nandroid" (or similar)
    • Select "Restore"
    • Pick the backup you would like to restore from (if more than one)
    • Select the partitions you would like to restore (if givent the option)
    • Select "Restore" and wait for the process to finish

Nandroid backups are, by default, stored on your external storage device in pretty much every situation. Some exceptions may be devices with no separate external storage (e.g. devices like the Galaxy Nexus) where the /sdcard directory is actually on the physical internal storage. In any case, though, it will save to your /sdcard directory, which is readable from a PC as USB mass storage or adb. You can copy a nandroid backup off of your phone and onto a computer for safe-keeping, then copy it back over later if you need to restore.

To do this you can simply plug in your device and look for a path like /sdcard/nandroid (or /sdcard/TWRP for TeamWin recovery, possibly elsewhere for others). Then you can copy the contents of the folder over to your computer. Alternatively, you can pull it with adb by plugging in the device and issuing something akin to:

adb pull /path/to/backups 

...from a PC shell.

 
 
22
 
vote
vote
最佳答案
 

要求您必须植根,您可以获得 Titanium Backup 并备份手机使用它。

使用 itanium backup 是这样您就可以选择性地恢复数据的一部分是安装Android的不同版本和/或构建。 Nandroid备份适用于有一个安全的图像重新开始,但它不利于在新的操作系统安装之上恢复数据(有时有副作用)。

 

The requirement being that you must be ROOTED, you could get Titanium Backup and back up your phone using that.

The reason for using Titanium Backup is so that you can selectively restore parts of your data if you were to install a different version and/or build of Android. NANDROID backup is good for having a safe image to fall back on but it isn't good for restoring data on top of a new OS installation (there are side effects sometimes).

 
 
     
     
17
 
vote

如果您没有rooted,则备份应用数据的好方法是使用 adb 来自 android sdk 。例如,要备份区域设置的数据,您可以执行以下操作:

adb pull /data/data/com.twofortyfouram.locale/ C:ackuplocale

并恢复,只需使用 adb push 以相反顺序的相同参数,即。:

adb push C:ackuplocale /data/data/com.twofortyfouram.locale/

您应该能够从 /data/app/ 的方式备份应用程序。

 

A good way to back up app data if you're not rooted is to used adb from the Android SDK. For example, to back up the data for Locale, you'd do something like the following:

adb pull /data/data/com.twofortyfouram.locale/ C:\backup\locale\

And to restore, just use adb push with the same arguments in reverse order, i.e.:

adb push C:\backup\locale\ /data/data/com.twofortyfouram.locale/

You should be able to back up apps from /data/app/ the same way.

 
 
       
       
5
 
vote

您可以使用许多应用,但许多人已经拥有了es文件管理器

注意:尽可能多地关闭应用程序。一些应用程序不会在运行时备份。

  • 启动es文件管理器
    (当您打开它时,您通常在文件管理器模式中)
  • 点击从右侧的第二个图标切换到应用程序模式
  • 长按任何图标。从上下文菜单中选择"全选"
  • 按MENU。选择"备份"

备份运行时,您可以通过打开通知栏来观看其进度

应用程序将被复制到备份/应用程序中

 

There are a number of apps you can use but many will already have the ES File Manager

Note: Turn off as many apps as you can. Some apps will not backup while running.

  • Launch ES File Manager
    (When you open it you are normally in the file manager mode)
  • Tap the second icon from the right to switch to Application mode
  • Long press on any icon. Select "Select All" from the context menu
  • Press Menu. Select "Backup"

While the backup is running, you can watch its progress by opening the notification bar

The applications will be copied into backup/apps

 
 
   
   
0
 
vote

取决于您的手机是此任务的复杂性。

htc evo(和支持的手机),您可以使用缺陷的根工具获取root访问权限。安装钛备份并返回到存储卡上的所有内容(包括系统)(并可以将其复制到您的计算机以获取额外的备份)。

否则,您需要获得类似于未撤销的root和使用钛的东西。

如果不可能,您需要root手机并进行NANDROID备份。这将在手机内存中作为图像备份所有内容,并且可以在任何时候恢复,以便在手机上完全更换任何内容,即使您安装了另一个版本的Android。

否则...... HTC PC同步?与其他工具相比,这有点糟糕。
 

Depending on your phone is the complexity of this task.

HTC Evo (and supported phones) you can use unrEVOked root tool to get root access. Install Titanium Backup and back everything (system included) up onto the memory card (and can copy it to your computer for extra backup).

Otherwise you need to either get something similar to unrEVOked to root and use Titanium.

If not possible, you need to root your phone and do a NANDROID backup. This backs up everything on the phone's memory as an image and can be restored at any point to fully replace anything on the phone with what it was, even if you installed another version of android.

Otherwise... HTC PC Sync? By that is kinda crappy compared to the other tools.

 
 
0
 
vote

如果 没有root ,则可以使用 mybackup 。它可以节省申请和amp;媒体(照片,音乐,视频),它可以保存数据(联系人,短信,彩信,警报,......)。

遗憾的是,它需要Internet连接(对于MyBackup / Rerware帐户)即使是本地保存和还原(例如,SD卡),免费版本是单手机只(你不能将备份复制到其他电话)。

注意,非根本版本不如例如钛备份或MyBackup Root。


还有氦气(以前的碳) ,这也不需要root。

 

If you don't have root, you can use MyBackup. It can save applications & media (photos, music, videos), and it can save data (contacts, SMS, MMS, alarms, ...).

Unfortunately it requires internet connection (for MyBackup / Rerware account) even for local save and restore (e.g. on SD card), and free version is single phone only (you cannot copy backup to other phone).

Note that non-root version is less powerful than e.g. Titanium Backup or MyBackup Root.


There is also Helium (formerly Carbon), which also doesn't require root.

 
 

相关问题

42  如何备份愤怒的小鸟保存/数据?  ( How to backup angry birds saves data ) 
我需要重新安装我的Android ROM,但在我想备份我的愤怒的鸟类savegame /数据/分数之前。 你有什么想法我该怎么做? ...

1  我如何知道我的手机引导加载程序是否被锁定或不锁定?  ( How do i know if my phones bootloader is locked or not ) 
我想闪光twrp&amp; supersu拍摄备份,但我读到了,如果使用锁定的引导加载程序刷新TWRP,它会将我的设备粘在一起&amp;擦除我的数据,现在只会打败目的。如何确定我的设备引导加载程序是否已锁定或不锁定? 我已经启用了开发人员选项,使能USB调试,菜单中有一个选项'OEM解锁',它做了什么?它擦除数据吗?...

1  通过卡读卡器从Windows 7访问Android SD  ( Access android sd from windows 7 via card reader ) 
我想在我的新手机使用它之前备份我的SD卡。所以我用一张读卡器将其连接到我的Windows 7笔记本。可悲的是,分区未安装到驱动器号,大家可以看到它在磁盘管理中没有错误。 我怀疑Android使用一个不受支持的文件系统。但是哪个以及如何从Windows读取它? 编辑:我的手机是一个moto g3。设备未植根。将S...

10  提取使用adb制作的TWRP备份  ( Extract twrp backups made with adb ) 
我有三星Galaxy S2 GT-I9100智能手机,带有线系和TWRP。每周一次,使用以下命令备份: adb backup -f twrp-20170322.ab --twrp boot data system 我可以选择使用 --compress 选项。 有没有办法提取 twrp-20170322.ab...

0  是否可以备份Android应用程序收藏夹  ( Is it possible to backup android app favorites ) 
我是一个三星Galaxy笔记4.我想刷新一个新的固件,但我已经安装了许多应用程序。 是否有任何应用程序,可以帮助我保留我的应用程序收藏夹和设置,以便在重新安装后可以恢复所有设置et收藏夹? ...

4  TWRP CreateTarfork()错误255备份数据时  ( Twrp createtarfork error 255 when backing up data ) 
我在我的onlusplus 5中安装了Freedomos 5.我不确定这是否与Freedomos有关,但是当我尝试使用数据,系统和引导的TWRP备份时,它与<代码>有一个错误createTarFork() 备份数据后不久。当我尝试从高级和运行' cd /data/media/0/TWRP/BACKUPS/bad7d6...

3  挂载加密仿真AVD userData-qemu.img.qcow2  ( Mount encrypted emulated avd userdata qemu img qcow2 ) 
我正在尝试备份我的AVD。要加快速度,我喜欢制作增量备份。备份 *.img.qcow2 文件效率低下。我希望能够安装驻留在虚拟块设备上的文件系统,然后备份其内容。 我的设备是使用Google服务和播放商店运行Android Oreo 8.1 x86系统映像的模拟Nexus 5x。没有选项不为全磁盘加密userdata...

0  在我出厂重置我的Galany J3之前  ( Before i factory reset my galany j3 ) 
我的女儿用她的手机锁定了自己。所以在我出厂重置她的Galaxy J3 Luna之前。她希望有一种方法可以将手机连接到CPU并拯救她的照片&amp;其他文件? ...

0  当我改变手机时,我会能够在梦想联盟足球2018年和我的球员购买中保留所有游戏进展吗?如何?  ( When i change my phone will i be able to keep all my game progress in dream lea ) 
当我改变手机时,我会能够在梦想联盟足球2018年和我的球员购买中保留所有游戏进展吗?如果是,怎么样? ...

2  非生根手机的备份策略  ( Backup strategy for non rooted phone ) 
对我的天真的道歉: 我想要,尽可能地备份,备份我的非生根三星Galaxy S8上的数据。为此,我做了两件事: 1)我定期使用命令进行adb备份 adb backup --all -apk -shared -f backupfile 2)我将手机挂载作为我的Windows机器上的网络驱动器,在那里我使用Robo...

8  如何从Google照片备份中删除照片?  ( How to delete photos only from google photos backup ) 
我在我的Android设备中备份了一些照片到Google照片。 我想取消备份它们。我希望他们只在内部停留在我的设备上。 但如果我从应用程序中删除照片,它也会从我的设备中删除它们。 有没有办法删除备份中的单个照片,让他们留在我的设备上? 我当然可以从Google照片下载它们,然后从Google照片中删除它们,然后将它们...

2  为什么Whatsapp自发地在一天中开始备份?  ( Why whatsapp spontaneously starts a backup in the middle of the day ) 
偶尔会发生一次 - 我正在使用whatsapp(远离备份时间),它只是开始备份,而不是让我在几分钟内使用该应用程序。 最后一个备份在发生之前成功并完成了几个小时,然后在该备份弹出消息之后,它没有像往常一样备份到谷歌驱动器 - 所以只有一个本地备份。 我的猜测是它是一种"冲洗缓冲区" 来保存当前状态,可能是因为自上次备...

4  合并多个SMS数据库  ( Merging multiple sms databases ) 
我的手机有很多问题,所以我有许多NANDROID备份,其中包含了不同的重叠短信消息。当事情无法启动时,我还在数据文件夹中进行了一些副本。我喜欢所有的SMSES备份我的Gmail的后代和可搜索,使用 sms backup plus 。 如何从我的备份中恢复邮件(和可能其他数据)的最简单方法?是否可以在仿真器内打开或运行...

3  如何手动备份应用程序的数据?  ( How to back up an apps data manually ) 
我可以通过手动将其移动到SD卡,从 root/data/data/you.package.name 目录备份我的应用程序的数据。但是,当我反转这个过程时,又名粘贴数据回来模拟恢复,应用程序只是强制关闭,我已经尝试过一堆应用并注意到相同的反应。我错了? ...

9  如何恢复氦备份?  ( How to restore a helium backup ) 
我正在转移到一部新手机,我用氦气备份我的东西到Dropbox。稍后我将该文件夹复制到 carbon 文件夹上我的sdcard上,但氦气不会似乎检测到它。我如何恢复怎么样?它看起来格式不同..常规备份似乎是 carbon/com.appname/files 但在我的dropbox备份中,它只有文件,根本没有文件夹。 ...




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


Licensed under cc by-sa 3.0 with attribution required.