BackupsResearch » History » Version 6
Kurtis Hanna, 10/03/2019 10:04 PM
removed the version history in wiki link so it goes to updated page
1 | 1 | Denis 'GNUtoo' Carikli | h1. BackupsResearch |
---|---|---|---|
2 | |||
3 | {{>toc}} |
||
4 | |||
5 | h2. Doing the backup of partitions or other block devices |
||
6 | |||
7 | h3. adb shell cat pipe |
||
8 | |||
9 | 6 | Kurtis Hanna | "Old versions of the EFS backup instructions":https://redmine.replicant.us/projects/replicant/wiki/BackupTheEFS used the following command: |
10 | 1 | Denis 'GNUtoo' Carikli | <pre> |
11 | adb shell "cat /dev/block/platform/*/by-name/EFS > /EFS.img" |
||
12 | </pre> |
||
13 | |||
14 | At some point or under some condition, this stopped working and the backup were corrupted. |
||
15 | 2 | Denis 'GNUtoo' Carikli | |
16 | h3. adb shell cat adb pull |
||
17 | |||
18 | <pre> |
||
19 | adb shell "cat /dev/block/platform/*/by-name/EFS /dev/block/platform/*/by-name/EFS" > /EFS.img" EFS.img |
||
20 | adb pull /EFS.img ./ |
||
21 | </pre> |
||
22 | |||
23 | Doing in in two stage like that seem to be widely used in other instructions (like the ones found in XDA forums). |
||
24 | |||
25 | Normally cat should produce a valid backup, however it might be better to use dd for extra safety. |
||
26 | |||
27 | On Replicant 6.0 0004, the recoveries for the following devices have 'dd': |
||
28 | * Galaxy Nexus |
||
29 | * Galaxy SIII |
||
30 | |||
31 | h3. adb pull the block device |
||
32 | |||
33 | The following should also work: |
||
34 | <pre> |
||
35 | adb pull /dev/block/mmcblk0p3 ./EFS.img |
||
36 | </pre> |
||
37 | 3 | Denis 'GNUtoo' Carikli | |
38 | 4 | Kurtis Hanna | The advantage is that it can also backup huge partitions like the user data partition or Replicant system partition. |
39 | 5 | Kurtis Hanna | |
40 | h3. Also see |
||
41 | |||
42 | * This backup app might be a good option for Replicant 9 or 10: https://github.com/stevesoltys/backup |