5,595,815 Members 36,240 Now Online
XDA Developers Android and Mobile Development Forum

(solution) how to take CWM / TWRP backup without switching off your phone.

Tip us?
 
amol8356
Old
(Last edited by amol8356; 20th December 2013 at 06:37 PM.) Reason: spell mistakes
#1  
Member - OP
Thanks Meter 8
Posts: 77
Join Date: Apr 2013
Location: pune
Thumbs up (solution) how to take CWM / TWRP backup without switching off your phone.

Nandroid backups are usually performed in recovery mode. This means you would have to turn off your phone and reboot in recovery mode, which wastes a whole lot of time rebooting and a lot more time offline.
But thanks to Ameer Dawood for creating a awesome tool which backup all your data just like CWM and TWRP without turn off the phone.

This tool, eventhough called "Online Nandroid", does not upload/save backups to any online/cloud services. Online here means that it does backup while phone is live or still running Android.

Online Nandroid backups the below partitions to /sdcard/clockworkmod/backup directory.

•mmcblk0_start (for Acer devices)
•uboot (for MTK based devices)
•boot
•recovery
•wimax (for Samsung devices)
•appslog (for HTC and Sony (Ericsson) devices)
•kernel
•system
•data
•cache
•datadata (for Samsung devices)
•efs (for Samsung devices)
•preload (for Samsung devices)
•.cust_backup (for Huawei devices)
•flexrom (for Acer devices)
•custpack (for Alcatel devices)
•mobile_info (for Alcatel devices)
•boot (for HP Touchpad)
•.android_secure
•sd-ext

The date format used for folder name is the same used by CWM itself and nandroid backups created with Online Nandroid can safely be restored using CWM, TWRP and 4EXT recoveries.

Official List of Supported Devices: http://bit.ly/OnlineNandroid-SupportedDevices

Requirements:

1. Rooted android phone
2. A terminal emulator installed on phone
3. Latest version of Busybox
4. A working CWM, TWRP or 4EXT based recovery installed
5. Some patience

Installation:
1. Download and copy zip file to SD card
2. Reboot into recovery
3. Choose install zip from SD card, select zip and flash
4. Reboot

Usage:
1. Open terminal emulator
2. Type su to obtain root
3. Type onandroid
4. Wait and watch
  • If you are getting error mkyaffs2image not found in path, try fix tool in attachments.
  • If you are getting error dedupe not found in path, try dedupe tool in attachments.
  • If Online Nandroid is failing to find boot and recovery partitions, flash the zip file for your device from below. (part_detect_tool.baffin)
[/LIST]
The behaviour of Online Nandroid can be adjusted by using command line flags, some of which are described in detail below. Each command line flag has its longer counter-part and both forms can be mixed. For a complete list of command line flags and short descriptions, you can type:

Code:
onandroid -h
OR
onandroid --help

Custom Backup Name:

* Example:
Code:
onandroid -c NAME
OR
onandroid --custom NAME

* Please be careful not to include characters not allowed in filenames.


Timezone modifier:

* Example: Use phone timezone for backup file name
Code:
onandroid -p
OR
onandroid --phone

* Example: Use UTC (default) for backup file name
Code:
onandroid -u
OR
onandroid --utc

* Note: UTC is used as default (if no timezone modifier is passed). This is to comply with CWM nandroid backups.


Backup Modes:

* Good old backup mode (default).

* Example:
Code:
onandroid -o
OR
onandroid --old

* Note: This is the most commonly known, default backup format.

* Split backup mode (CWM6+ only).

* Example:
Code:
onandroid -l
OR
onandroid --split

* Note: This is specifically useful if you have partitions which are over 2GB in size. Use this only if you have CWM 6+.

* CWM6 style incremental / dedupe backup mode.


* Example:
Code:
onandroid -i
OR
onandroid --incremental

* Garbage collect. For incremental backups (used for cleanup after deleting incremental backups).

* Example:
Code:
onandroid -gc
OR
onandroid --garbage-collect

* Advanced / Selective backup mode. For backing up only specific partitions.

* Example:
Code:
onandroid -a PARTITIONS
OR
onandroid --advanced PARTITIONS

* Partition letters / names can be found by typing onandroid -ah

* TWRP backup mode.

* Example:
Code:
onandroid -w
OR
onandroid --twrp

* By default, TWRP backup mode creates uncompressed backups. If compressed backups are required, use it like this:
Code:
onandroid -w -ce
OR
onandroid --twrp --compression-enable

* By default, TWRP backup mode generates md5sum. If md5sums are not required, use it like this:
Code:
onandroid -w -md
OR
onandroid --twrp --md5-disable

Replace Older Backups (with same name) - used with custom backup names:
* While using custom backup names, Online Nandroid will not allow an already existing backup name to be specified, by default. Trying this will return an error and halt backup. If you want to replace the older backup with a new backup, by using the same custom backup name, you can specify the below command line flag.

* Example:
Code:
onandroid -c MyBackup -r
OR
onandroid --custom MyBackup --replace

* Note: This will only work with custom backup names. This can be used to update a backup from a previous state, by way of using advanced backup mode in combination with this mode.

source:http://bit.ly/OnlineNandroid

for more info head over to this thread:http://forum.xda-developers.com/show....php?t=1620255
Attached Thumbnails
Click image for larger version

Name:	screenshot-1343385248234.jpg
Views:	198
Size:	36.5 KB
ID:	2465564  
Attached Files
File Type: zip onandroidv9.20.zip - [Click for QR Code] (140.0 KB, 13 views)
File Type: zip fixtool.zip - [Click for QR Code] (192.9 KB, 13 views)
File Type: zip dedupe_tool.zip - [Click for QR Code] (730.0 KB, 14 views)
File Type: zip part_detect_tool.baffin.zip - [Click for QR Code] (123.9 KB, 15 views)
The Following User Says Thank You to amol8356 For This Useful Post: [ Click to Expand ]
 
mahalkosijoy
Old
#2  
Member
Thanks Meter 6
Posts: 36
Join Date: Nov 2013
Quote:
Originally Posted by amol8356 View Post
Installation:
1. Download and copy zip file to SD card
2. Reboot into recovery
3. Choose install zip from SD card, select zip and flash
4. Reboot
]
do we need to flash ALL the attatched files?
 
amol8356
Old
(Last edited by amol8356; 21st December 2013 at 03:32 PM.)
#3  
Member - OP
Thanks Meter 8
Posts: 77
Join Date: Apr 2013
Location: pune
If you are getting errors then you have to flash their respective zips.
for example:
1) •If you are getting error mkyaffs2image not found in path, try fix tool in attachments.

2) •If you are getting error dedupe not found in path, try dedupe tool in attachments.

3) •If Online Nandroid is failing to find boot and recovery partitions, flash the zip file for your device. (part_detect_tool.baffin)


Sent from my GT-I9082 using XDA Premium 4 mobile app
 
ameer1234567890
Old
#4  
ameer1234567890's Avatar
Recognized Developer
Thanks Meter 1668
Posts: 1,593
Join Date: Mar 2012
Location: Thulhaadhoo
For this device it would not require fixtool. Rest of the files should be fine.
Samsung Relay 4G SGH-T699
ROM: CyanogenMod 10.2
Kernel: 3.4.66-cyanogenmod-g7fcdbcf
Recovery: CWM-based Recovery v6.0.4.4
_____________________________________________

My Tools:
Please press the thanks button or buy me something from my wishlist, if you liked my work. Alternatively you can also buy me an ebay Gift Card or send me bitcoins.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes