• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

TheCustomDroid

  • News
    • 2018
    • 2019
  • Tips
  • ROM
    • Stock Firmware
    • Custom ROM
  • Downloads
  • Root
  • Reviews
  • We’re Hiring
You are here: Home / Tips / How to take an ADB backup of your phone using TWRP

How to take an ADB backup of your phone using TWRP

Tips By Dhananjay on October 3, 2018

TWRP has been updated to v3.1.0-0. The new version of the recovery is already set and rolling out for the supported devices. Below is the changelog for as mentioned on the official website.

ADB Backup using TWRP

TWRP v3.1.0-0 Changes

  • vold decrypt on a few select HTC devices, TWRP will now attempt to use the system partition’s vold and vdc binaries and libraries to decrypt the data partition (nkk71 and CaptainThrowback)
  • adb backup to stream a backup directly to or from your PC, see documentation here: https://github.com/omnirom/androidbootablerecovery/commit/ce8f83c48d200106ff61ad530c863b15c16949d9 (bigbiff)
  • tweak MTP startup routines (mdmower)
  • support new Android 7.x xattrs for backup and restore to fix loss of data after a restore (Dees_Troy)
  • support POSIX file capabilities backup and restore to fix VoLTE on HTC devices and possibly other issues (Dees_Troy)
  • better indicate to users that internal storage is not backed up (Dees_Troy)
  • improve automatic determination of TW_THEME (mdmower)
  • minimal getcap and setcap support (_that)
  • try mounting both ext4 and f2fs during decrypt (jcadduono and Dees_Troy)
  • shut off backlight with power key (mdmower)
  • timeout during FDE decrypt (Dees_Troy and nkk71)
  • support for FBE decrypt and backing up and restoring FBE policies (Dees_Troy)
  • boot slot support (Dees_Troy)
  • TWRP app install prompt during reboot (Dees_Troy)
  • support for AB OTA zips (Dees_Troy)
  • support new Android 7.x log command (Dees_Troy)
  • update recovery sources to AOSP 7.1 (Dees_Troy)numerous bugfixes and improvements by too many people to mention

You are now allowed to take Nandroid backups over ADB using TWRP v3.1.0-0. The process, however, can only be initiated from the client side (In simpler words, from your computer). We will talk about it in much detail, a bit later.

The next notable feature being introduced is specific to the Pixel/Pixel XL users with A/B partition format, where the users will now be able to flash alpha/beta OTA update zips from within the recovery.

The update also adds support to a list of new devices, including:

  • HTC U Ultra
  • HTC Bolt/10 EVO
  • Moto G 2015
  • Xiaomi Redmi Note 4/4x
  • Xiaomi Mi Max
  • LG Optimus L7

Go ahead and update to the latest TWRP, either manually or by using the Official TWRP app.

How to take ADB backup using TWRP

Over to the ADB backup functionality that TWRP is offering with its latest update. No, if you’re thinking that you would be able to generate a backup using ADB over WiFi, we are sorry to disappoint but this is not that. You will still need to make a physical connection with the PC using a USB cable.

You can use the command-line tool on your PC to execute the appropriate commands and take the backup of the known partitions of your device.

To begin, you must have ADB set up on your PC. You can simply use the standalone package. And of course, your device must be booted into TWRP recovery and connected to the PC.

  1. On a whole, the ADB backup command follows the below structure.
    adb backup -f <filename> --twrp <options>
  2. The -f switch specifies the filename being added. <filename> could be anything according to your preferences. However, if you choose to leave it empty, the backup will reside under backup.ab, by default.
  3. <options> let you use the following options, depending upon the partitions you want to backup.
    --compress : Compress the data
    
    system : backup system partition
    
    cache : backup cache partition
    
    data : backup data partition
    
    boot : backup boot partition
    
    etc : backup each and every partition your device has
  4. Only boot, data, and system partitions are backed up by default. So without any arguments, a generalized backup command would be:
    adb backup --twrp

    TWRP - Default ADB Backup Command

  5. You can make use of the arguments to customize your backup. So a more advanced backup command should look like:
    adb backup -f firstbackup --twrp system data cache boot
  6. As soon as you execute the backup command at the client-side, the backup screen will open on your device. Then unlock your device and confirm the backup process.
    TWRP Confirm ADB Process
  7. You can use the following command on the client side to restore a backup:
    adb restore <filename>

    or

    adb restore backup.ab

View TWRP’s github for complete documentation.

The ADB backup functionality will work with all the supported devices. If your device still hasn’t received the update, you can track the builds here.

Don’t forget to share this article on your social profiles by clicking the buttons below. Didn’t understand something? Let us help you. Just comment below.



#ADB Backup Nandroid Backup TeamWinRecoveryProject TWRP

«
Previous story
Install Nougat on Galaxy S6 Edge [SM-G925F]
»
Next story
How to Install TWRP Recovery and Root HTC U Ultra

Dhananjay

Chief Editor |

I come with a background of operating and exploring Android devices since the last 6 years. I dwell on technology and Android to be precise. Its open-source nature and the enormous scope for possibilities have intrigued me ever since I operated my first Android device. All this ultimately led me to start "TheCustomDroid". Apart from that, I spend most of my time mountain biking and gaming on my PS4.

Reader Interactions

Leave a Reply Cancel reply

Do not flame, hate, spam, or impersonate staff

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Latest ROMs

How to Install Samsung Galaxy Note 8 Android Pie (One UI) Update

How to Install Samsung Galaxy Note 8 Android Pie (One UI) Update

Download and Install Asus Zenfone 5Z Android Pie OTA Update

Download Asus Zenfone 5Z Android Pie OTA Update (V90.10.138.175)

How to Install Nokia 5 Android Pie Update OTA

Download and Install Nokia 5 Android Pie Update (OTA)

How to Install Samsung Galaxy Note 9 Android Pie (One UI) Update

How to Install Samsung Galaxy Note 9 Android Pie (One UI) Update

How to Install Nokia 8 Sirocco Android Pie Update

Download and Install Nokia 8 Sirocco Android Pie Update (OTA)

Recent comments

  • Dhananjay on How to Manually Install OTA Updates on Android (2 Methods)
  • Dhananjay on Install Android Pie-based One UI Beta on Samsung Galaxy S8/S8+ (OTA)
  • Dhananjay on How to Check Camera2 API Support on Android Devices
  • Shakaib Islam on How to Check Camera2 API Support on Android Devices
  • Klayton on Install Android Pie-based One UI Beta on Samsung Galaxy S8/S8+ (OTA)

Latest Downloads

Download Telegram v5.2

Download Telegram v5.2: Allows Undo Deleted Chats and Brings Global Group Permissions

Redmi Note 7 Stock Wallpapers

Download Redmi Note 7 Stock Wallpapers (FHD+)

Download OnePlus 6T McLaren Edition Stock Wallpapers and Sounds

Download OnePlus 6T McLaren Edition Stock Wallpapers and Sounds

Download OnePlus 6T Stock Wallpapers and Live Wallpapers

Download OnePlus 6T Stock Wallpapers and Live Wallpapers (2K, 4K, and Never Settle Versions)

Download Razer Phone 2 Stock Wallpapers

Download Razer Phone 2 Stock Wallpapers [9 Wallpapers]

Download Nokia Camera App Port for Any Android 8.0+ Device (APK)

Download Nokia Camera App Port for Any Android 8.0+ Device (APK)

Download Google Pixel 3 Camera App APK

Download Google Pixel 3 Camera App with new UI and RAW Support (APK)

© 2019 · TheCustomDroid · Designed & optimized by NEXTVOID.com

  • About Us
  • Contact
  • Privacy Policy
  • Disclaimer
  • Terms of Use
  • Sitemap