Android

Android Backup via ADB: Complete Guide

This guide explains in detail how to back up an Android device via ADB. You'll learn to save all data, including apps and system settings, and restore them when needed.

Updated at February 15, 2026
10-20 minutes
Medium
FixPedia Team
Применимо к:Android 5.0 and aboveAndroid SDK Platform-Tools 30.0.5+

Introduction / Why This Is Needed

A backup of an Android device's data is insurance against losing important information when changing phones, performing a factory reset, or experiencing hardware failure. Using ADB (Android Debug Bridge) allows you to create a full or partial backup directly from your computer, without needing to install third-party apps on the device. This method is particularly useful for:

  • Saving all apps along with their data (if the app permits backup).
  • Backing up system settings and files.
  • Creating a copy before experimenting with firmware or gaining root access.

After completing this guide, you will have a backup file that can be restored on the same or a different device (considering compatibility).

Requirements / Preparation

Before starting, ensure the following conditions are met:

  1. A computer running Windows, Linux, or macOS.
  2. Installed Android SDK Platform-Tools (including ADB). If not, download from the official website and extract.
  3. An Android device on version 5.0 (API 21) or higher. Note: On Android 10+ without root access, the backup does not include APK files for some apps (especially banking apps and those using protection).
  4. USB debugging enabled on the device (see step 2).
  5. A USB cable (preferably original for a stable connection).
  6. Sufficient free space on the computer to store the backup (size depends on the amount of data on the device).

⚠️ Important: If a password or pattern lock is set on the device, the system may require it to be entered to access data during an ADB backup. Ensure the device is unlocked.

Step-by-Step Guide

Step 1: Install ADB on Your Computer

  1. Go to the Android SDK Platform-Tools page and download the archive for your OS.
  2. Extract the archive to a convenient folder, e.g., C:\platform-tools (Windows) or ~/platform-tools (Linux/macOS).
  3. Add the path to this folder to the system PATH variable:
    • Windows: Control Panel → System → Advanced system settings → Environment Variables → Add the folder path to Path.
    • Linux/macOS: Edit ~/.bashrc or ~/.zshrc, adding the line export PATH=$PATH:~/platform-tools, then run source ~/.bashrc.
  4. Verify the installation: open a terminal (CMD, PowerShell, Terminal) and type adb version. The ADB version should be displayed.

Step 2: Enable USB Debugging on the Device

  1. Open SettingsAbout device (or SystemAbout device).
  2. Find Build number and tap it 7 times. A notification "You are now a developer!" will appear.
  3. Go back to the main settings menu. The Developer options item is now available.
  4. Enter Developer options and enable the USB debugging toggle.
  5. When connecting the device to the computer for the first time, a dialog will appear requesting debugging permission. Check "Always allow from this computer" and click OK.

Step 3: Connect the Device and Check the Connection

  1. Connect the device to the computer using a USB cable.
  2. On the device, if prompted, select file transfer mode (MTP) or "Charging only" — ADB works in either case.
  3. Open a terminal and run:
    adb devices
    
  4. In the device list, you should see a line like:
    <serial_number> device
    
    If the status is unauthorized, check the device screen and confirm authorization.
  5. If the device is not listed:
    • Restart ADB: adb kill-server then adb start-server.
    • Check drivers (for Windows: Device Manager → find the device with an exclamation mark → update driver).
    • Try a different USB port or cable.

Step 4: Start the Backup

ADB supports several backup types. For a maximally complete backup (apps, app data, external storage, system apps), use:

adb backup -apk -shared -all -system -f backup.ab

Parameter breakdown:

  • -apk — save APK files of installed apps.
  • -shared — copy files from external storage (photos, videos, documents on SD card).
  • -all — back up all installed packages (including system and user apps).
  • -system — include system apps (requires root for full data backup on Android 10+).
  • -f backup.ab — specify the output file name (here backup.ab in the current folder). You can replace it with any path, e.g., -f /home/user/backup_2026.ab.

💡 Tip: If you only want to back up a specific app, specify its package instead of -all. For example: adb backup -apk com.whatsapp -f whatsapp.ab.

⚠️ Important: On Android 10 and higher without root, the -apk and -system parameters may not work for many apps due to changes in system protection. Only their data will be saved (if the app allows it). Root is required for a full APK backup of system apps.

Step 5: Confirm the Backup on the Device

After running the command, a "Back up my data" dialog will appear on the device screen.

  1. You can set a password to encrypt the backup file (recommended if the file contains sensitive data). Enter the password twice.
  2. If no password is needed, leave the field blank.
  3. Tap "Back up my data".
  4. The copying process will begin. A "Creating backup..." notification may appear on the device.

Step 6: Wait for Completion

  1. The terminal will display progress as dots (.) or percentages (depending on the ADB version).
  2. Do not disconnect the device or use it during the backup.
  3. After completion, the terminal will show backup finished (or simply return to the command prompt).
  4. The backup.ab file (or the name you specified) will be created in the current directory (or the specified path). Its size can reach several gigabytes.

Verifying the Result

  1. Ensure the backup file exists and has a non-zero size:
    ls -lh backup.ab
    
    (Linux/macOS) or check file properties in Windows.
  2. For integrity checking, try restoring the backup on the same device (see the restore guide). If restoration completes without errors, the backup is valid.
  3. Store the file in a safe location (external drive, cloud storage). It is recommended to keep it together with the remembered password if you set one.

Potential Issues

Device not listed in adb devices

  • Cause: Drivers not installed (Windows) or USB debugging not enabled.
  • Solution: Install ADB drivers (can be done via adb kill-serveradb start-server). For Windows, download drivers from the device manufacturer's site or use universal ones (e.g., from ClockworkMod). Ensure USB debugging is enabled on the device and you have confirmed authorization.

Error backup failed or java.io.IOException: Permission denied

  • Cause: On Android 10+ without root, some apps prohibit backing up their data. Also, insufficient space on the device or computer.
  • Solution: Try backing up without -apk and -system parameters (data only). Free up space on the device and computer. Root is required for a full backup of system apps.

Backup created but file is very small (a few KB)

  • Cause: Only metadata was backed up because no apps allowing backup are installed, or key parameters were disabled.
  • Solution: Ensure flags -apk -shared -all are used. Check that the device has data to back up (photos, apps).

Restoring from backup requires a password you did not set

  • Cause: Some devices (especially with custom skins) automatically set a default password (often empty). If you did not set one, try leaving the field blank.
  • Solution: If that doesn't work, the backup might have been created with a password on another device. Restoration is only possible with the correct password.

ADB errors error: closed or error: device offline

  • Cause: Connection interrupted, device entered sleep mode, or authorization was reset.
  • Solution: Reconnect the cable, unlock the device, restart ADB (adb kill-server && adb start-server), and re-confirm authorization on the device.

F.A.Q.

Can I perform a full Android backup without root via ADB?
Where is the backup file saved by default when using adb backup?
How to restore data from an ADB backup?
Why doesn't ADB see my device during backup attempt?

Hints

Install ADB on your computer
Enable USB debugging on the device
Connect the device and verify connection
Start the backup process
Confirm the backup on the device
Wait for the process to complete
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community