(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)
•wimax (for Samsung devices)
•appslog (for HTC and Sony (Ericsson) devices)
•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)
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
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
1. Download and copy zip file to SD card
2. Reboot into recovery
3. Choose install zip from SD card, select zip and flash
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)
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:
Custom Backup Name:
onandroid -c NAME
onandroid --custom NAME
* Please be careful not to include characters not allowed in filenames.
* Example: Use phone timezone for backup file name
* Example: Use UTC (default) for backup file name
* Note: UTC is used as default (if no timezone modifier is passed). This is to comply with CWM nandroid backups.
* Good old backup mode (default).
* Note: This is the most commonly known, default backup format.
* Split backup mode (CWM6+ only).
* 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.
* Garbage collect.
For incremental backups (used for cleanup after deleting incremental backups).
* Advanced / Selective backup mode.
For backing up only specific partitions.
onandroid -a PARTITIONS
onandroid --advanced PARTITIONS
* Partition letters / names can be found by typing onandroid -ah
* TWRP backup mode.
* By default, TWRP backup mode creates uncompressed backups. If compressed backups are required, use it like this:
onandroid -w -ce
onandroid --twrp --compression-enable
* By default, TWRP backup mode generates md5sum. If md5sums are not required, use it like this:
onandroid -w -md
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.
onandroid -c MyBackup -r
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.
for more info head over to this thread:http://forum.xda-developers.com/show....php?t=1620255