Skip to content

Simple media backup/sync to a computer for android phones that have cable connection issues

License

Notifications You must be signed in to change notification settings

xeoncross/android_media_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Android Media Backups

Sometimes there are connection problems with getting android file transfer to work (i.e. Google Pixel).

  1. Enable USB debugging on the device
  2. Download Android Debug Bridge (adb)
  3. Install Golang (Go)

Run

Using the command line, you can check out this project, and run it using Go:

$ git clone git@github.com:Xeoncross/android_media_backup.git
$ cd android_media_backup
$ go run android_media_backup.go

By default the script downloads everything from DCIM/Camera, but you can change this when calling the script.

$ go run android_media_backup.go -dir="WhatsApp"

Warning

Files are removed from device after being transferred to the computer. This required when dealing with phones that continue to disconnect in the middle of transfers.

More about adb

Android Debug Bridge (adb) can be used directly from the terminal. You can use it to access the files manually for coping by starting a new shell instance to browse the device folders:

adb shell

or run a command remotely

adb shell ls /sdcard/DCIM

Then you can use adb pull ... to download the files locally.

adb pull -a /sdcard/DCIM/Camera/ ./
adb pull -a /sdcard/Snapseed ./
adb pull -a /sdcard/WhatsApp ./

About

Simple media backup/sync to a computer for android phones that have cable connection issues

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages