hæx.com logo

How I backup my media from Android

I needed a way to easily backup new files from selected media from my phone to my windows. Here's a quick and dirty way.

Download some software

  1. Download an FTP Server to your phone
  2. Download WinSCP to your windows

Make a folder where you want your backup and create a bat script:

X:\backup\backup.bat

@echo off
set "ip=10.0.0.150"
::set /p ip="phone IP ([%ip%]):"

:: | marks start of excluded files
:: / at end of name means folder, they are recursive
:: ; to separate

"WinSCP.com" /command ^
    "open ftp://user:pass@%ip%:2221/" ^
    "synchronize local X:\backup\ / -filemask=*.jpg;*.jpeg;*.png;*.mp4;*.webm;*.pdf;*.txt|android/;Android/;emulated/;self/;cache/;_media/;LOST.DIR/;ANRSnap/;Alarms/;AzRecorderFree/;Cardboard/;Huawei/;HuaweiSystem/;Notifications/;Podcasts/;Ringtones/;TTImages_cache/;airdroid/;caustic/" ^
    exit

:: pause

Now start the FTP Server on your phone, double click that bat!