Created
March 4, 2016 09:37
-
-
Save akkijp/1eaa88ebe136e15bbabb to your computer and use it in GitHub Desktop.
android-backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formatted_date () { | |
date "+%Y%m%d%H%M" | |
} | |
zip_file_name=LINE_Backup_`formatted_date`.zip | |
adb -s CB5A25CFNW pull /sdcard/LINE_Backup/ /tmp/LINE_Backup/ && \ | |
zip -r /tmp/$zip_file_name /tmp/LINE_Backup && \ | |
mv /tmp/$zip_file_name /Users/YOUR_HOME_DIR/Dropbox/40-Archive/LINE_Backup/ | |
# mv /tmp/$zip_file_name /Users/YOUR_HOME_DIR/Desktop/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment