Project

General

Profile

BackupsResearch » History » Version 8

Denis 'GNUtoo' Carikli, 10/20/2019 10:26 PM

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