Skip to content

Instantly share code, notes, and snippets.

@yardnsm
Last active November 11, 2024 20:33
Show Gist options
  • Save yardnsm/938c86ac52dab25401090acf359a68fe to your computer and use it in GitHub Desktop.
Save yardnsm/938c86ac52dab25401090acf359a68fe to your computer and use it in GitHub Desktop.
My "checklist" for backing up my Android devices

vim:fdl=2:

Android backup

Mainly for Google Pixel phones.

I mostly use Google's backup to Google Drive (which is freaking amazing). It backs up the following:

  • App data
  • Call history
  • Device settings
  • SMS

Make sure its all backed up! Verify it under setting AND in https://drive.google.com/drive/backups/.

Currently, the only way to manually initiate the backup process is using adb:

$ adb shell bmgr backupnow --all

SMS & Call History

This should be handles by Google's backup, but just in case:

  • Use the app SMS Backup & Restore.

  • Copy the files from /SMSBackupRestore to the computer.

    $ adb pull /SMSBackupRestore
    

Launcher layout and apps list

Using Nova Launcher? Awesome! Open the backup page in Nova Settings. Using the stock launcher? Google's backup should handle this.

But just in case - take screenshots for every page :)

Photos & Videos

I use Google Photos for that. The Pixel gives you unlimited free storage for photos and videos at original quiality.

Make sure to backup the following directories with the app:

  • Instagram
  • Snapchat
  • Snapseed

Internal storage

Most of the stuff are backed up in the cloud but again, just in case, it's a good idea to also have a local backup.

Use adb push or adb pull to transfer stuff from the phone to the computer. This is WAY faster and convenient than the 'Android File Transfer' app.

Important locations:

  • /DCIM for media.
  • /Download
  • /Memesis 'cause you gotta keep the memez.
  • /Movies
  • /Pictures
  • /Slack
  • /SMSBackupRestore (see above)
  • /Snapchat
  • /Snapseed
  • /Whatsapp for any case.

A nifty snippet:

folders=( /Download /Whatsapp ) # ...and so on...
for f in ${folders[@]}; do; adb pull $f; done

Happy flashing :)

@EdenCampo
Copy link

You da best

@d4mr
Copy link

d4mr commented Jan 20, 2021

Since I can't upvote, have an equivalent: 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment