Skip to content

Instantly share code, notes, and snippets.

View Alih-b's full-sized avatar
🎯
Focusing

Ali Bayest Alih-b

🎯
Focusing
View GitHub Profile
@Alih-b
Alih-b / backup.sh
Created May 17, 2020 13:48
backup android phone sd-card with adb
# you need to : enable usb debugging from developer mode
# install adb tool
# trust device and allow to transfer file
A="$(date +"%d-%m-%Y")"
temp="$HOME/android-backup/temp"
b_dir="$HOME/android-backup/$A/"
if [ ! -d $temp ] ; then
mkdir $temp