Want to take a TWRP backup, but your phone is out of space?

You don't have to save the backup on your phone at all.

Since TWRP 3.1.0, TWRP can send the backup straight to your computer over ADB. You don't need to delete files from your internal storage or SD card first.

I first wrote this guide in 2017. The commands still work the same way, but a lot has changed around TWRP since then, so I've updated it.

Below, I'll cover whether your phone is still supported, what a TWRP backup includes, how to back up and restore over ADB, and what to check before you rely on the file.

Also Read: How to Take Screenshots in CWM/TWRP Recovery

TL;DR

  • Back up to your PC: boot your phone into TWRP and run adb backup --twrp. The backup streams to your computer, so your phone needs no free space.
  • Restore from your PC: in TWRP, run adb restore backup.ab from the folder that holds the file. The restore is all or nothing.
  • Check your phone first: TWRP's latest official release is 3.7.1 (February 2024), and fewer phones are supported than before.
  • Copy your files separately: a TWRP data backup doesn't include internal storage, such as photos and downloads.

Does TWRP Still Work on Phones Today?

Yes, but on fewer phones than before.

The latest official release on twrp.me is TWRP 3.7.1, from February 2024, and the team calls it a major release for Android 12.

Check your exact phone model on TWRP's devices page before you start.

If your phone isn't there, this guide isn't for you. Many custom ROMs now ship their own recovery instead, as I explain in my custom ROM guide.

What Does a TWRP Backup Include?

TWRP's default backup is system, data and boot. These are the parts you need if something goes wrong while flashing a ROM.

The part people often miss: TWRP says a data backup does not include your internal storage. Your photos, downloads and other files aren't in it, so copy them to your PC separately.

TWRP Backup Methods at a Glance

MethodCommand or actionWhat you chooseWhere the file goes
Backup on the phoneadb backup --twrp, then tap in TWRPSystem, Data and Boot on the phonebackup.ab in the folder you're in
Backup with a commandadb backup -f <filename> --twrp <options>Partitions in the commandThe file name you choose
Restoreadb restore backup.abEverything in the backup (all or nothing)From your PC back to the phone

How to Take a TWRP Backup Directly to Your PC via ADB

Here's the full process, from phone setup to the backup file on your PC.

Requirements

  • Battery above 75%.
  • A good USB cable that supports data.
  • TWRP 3.1.0 or newer installed on your phone.
  • ADB on your PC. Get it from Google's Platform-Tools, as I show in my ADB setup guide.

Steps

  1. On your phone, go to "Settings" → "About phone" and tap "Build number" seven times. You'll see a message that you're now a developer.
  2. Go back to "Developer options" and turn on "USB debugging".
About phone, Settings and Developer options screens with USB debugging turned on
This screenshot is from an older Android version, but the settings still have the same names.
  1. Boot your phone into TWRP. If it's on and connected, type adb reboot recovery. Or switch it off and use its recovery key combination, which is different for each brand. On many phones, it's Volume Down + Power.
  2. On your PC, open the folder where adb is. Click the address bar, type cmd and press Enter to open a Command Prompt there.
Typing cmd in the File Explorer address bar to open Command Prompt in the adb folder
  1. While your phone is in TWRP, type this command:
adb backup --twrp
Command Prompt running adb backup --twrp
  1. TWRP opens its backup screen on your phone. Select "System", "Data" and "Boot". Keep your phone's screen on.
TWRP backup screen with System, Data and Boot selected
  1. Swipe the "Swipe to Backup" slider, and the backup starts streaming to your PC.

If you don't name the file, adb saves it as backup.ab in the folder you're in.

Choose Partitions With a Command

Don't want to tap anything on the phone? Pick the partitions in the command itself:

adb backup -f <filename> --twrp <options>

The options are:

  • --compress compresses the backup
  • system backs up system
  • cache backs up cache
  • data backs up data
  • boot backs up boot

You can use other partition names from your phone's TWRP too, and you can string several together, like this:

adb backup -f mybackup.ab --twrp --compress system data boot
Command Prompt running adb backup with the --twrp and --compress options

Name the file whatever you like.

The catch: newer versions of adb print a warning that adb backup is deprecated and may be removed in a future release. It still runs today, so the warning isn't a reason to panic.

How to Restore a TWRP Backup From Your PC via ADB

  1. Reboot your phone to TWRP.
  2. On your PC, open a Command Prompt in the folder where your backup file is.
  3. Type this command, with your own file name:
adb restore backup.ab
Command Prompt running adb restore backup.ab

Your backup will be restored in a few minutes. Sit back and relax.

Keep in mind, the restore is all or nothing. You can't pick only some partitions.

Also Read: How to Downgrade an App Without Losing Data on Android

Before You Rely on This Backup

  • Back up the same phone you'll restore to. A TWRP backup is for getting your own phone back to how it was.
  • Don't restore special partitions unless you know why. TWRP warns that restoring partitions like EFS when you don't need to can brick your phone.
  • It's not a way to move to a new ROM. On modern phones, a new ROM usually means formatting your data. Back up your photos, chats and 2FA codes the normal way first.

Final Thoughts

This is how you take a TWRP backup straight to your PC, without using any space on your phone.

The commands haven't changed since 2017. What has changed is how many phones still have TWRP, so check yours on the devices page before you start.

If your phone isn't on that list, look at the recovery your custom ROM ships with, as I explain in my custom ROM guide. What's still uncertain is how long TWRP keeps adding support for new phones.

FAQs

Can I save a TWRP backup straight to my PC?

Yes. Since TWRP 3.1.0, boot your phone into TWRP and run adb backup --twrp, and the backup streams to your computer over ADB.

Does a TWRP backup include my photos and downloads?

No. A TWRP data backup doesn't include internal storage, so copy your photos, downloads and other files to your PC separately.

Can I restore only some partitions from an ADB backup?

No. Restoring with adb restore backup.ab is all or nothing, so you can't pick only some partitions.

Does TWRP still work on today's phones?

Yes, but on fewer phones than before. Check your exact model on TWRP's devices page at twrp.me before you start.

Still stuck? Tell me through the contact page.

Xaif (Huzaifa Dhapai) started TechVerge in 2015. He's a web developer and long-time Android enthusiast who writes about Android tricks, apps, Windows and the tech he uses every day.

Topics