-
Notifications
You must be signed in to change notification settings - Fork 4
Backup
Murphy's Law states, "Anything that can go wrong, will go wrong". It's a proverb from the late 1940s, and while it may not be as academically accurate and influential as Newton's laws of motion, it's generally acknowledged in some fields as a rule of thumb. Even if you do the best you can, things can unexpectedly go south, so it's always good to prepare for the worst.
Despite having technological advancements of the last 50 years, your 6300 4G still remains prone to human errors. Detailed documentation does not shield you from incorrectly modifying your phone, which could render it unbootable or worse. Backups exist as a fallback to help prevent data loss or even return to the previous state in case it does happen.
General recommendation
- To export your contacts in the built-in Contacts app, go to Contacts → Options → Settings → Export contacts. From there, choose to either save to a CSV file on your SD card, send through Bluetooth to other devices, or upload to Web services such as Google Contacts and Outlook.
- Third-party solutions are also available, such as PhoneCopy in KaiStore or D3SXX's kaios-backup etc.
- On debug-enabled devices, you can sideload
certified
apps such as D3SXX's kaios-backup or Fiachra1993's kaios-sms-backup which uses Firefox OS APIs to export your text messages to JSON or CSV files. - Built-in Calendar app allows syncing events through Google, ActiveSync or CalDAV accounts. If you only have a small number of events, you can migrate each of those to your online calendars. strukturart's greg also allows syncing events with Nextcloud.
- Each entry in the Notes app can be shared over texts, Bluetooth or email.
- Captured photos and videos are stored under
DCIM
. Recorded voice files are stored underaudio
. To change whether to save files on phone's internal storage or SD card, go to Settings → Storage → Default media location.
User data are saved in the
/data/local
folder, and more precisely divided as follows:
- installed applications (
webapps
folder) and related permissions (permissions.sqlite
file);- system configurations (
config
folder);- personal data, i.e. contacts, text messages, media saved on internal memory (
storage
folder and related subfolders).
To extract application data and system configurations from /data/local/
, turn on debugging mode on your phone and connect to your computer, create a new folder on your computer named local
, then point Command Prompt/Terminal to it and type:
adb pull /data/local/webapps
adb pull /data/local/permissions.sqlite
adb pull /data/local/config
adb pull /data/local/storage
Grab a cup of coffee, tea, beer or whatever you like. It may take a bit of time depending on how much you're extracting.
To restore: With Wallace Toolbox installed on your phone, open the app and press 1 to enable temporary ADB root access. Turn on debugging mode on your phone, connect to your computer, point Command Prompt/Terminal to the local
folder we've created and type:
adb push local /data/ && adb reboot
mkdir -p /sdcard/dumps
for P in $(ls /dev/block/bootdevice/by-name/);
do
busybox dd if=/dev/block/bootdevice/by-name/$P of=/sdcard/dumps/$(basename $P).img
done;
This documentation page is written on the courtesy of the BananaHackers team, 2018–present.