Backup Android Phone to Computer

Share on:

Simple backup with to drive

Encrypted backup can be initiated from the computer, using google abd utility

1LOCAL_STORAGE="/media/jfparis/aca6ec8a-c5d9-4ae5-a540-f0ef948365be"
2PHONE_NAME="galaxys9"
3FILE_NAME="`date +%F`-$PHONE_NAME.ab"
4adb backup -apk -shared -all -f $LOCAL_STORAGE/$FILE_NAME

Backup with export to cloud

the following script adds an upload step using rclone to a preconfigured destination.

1LOCAL_STORAGE="/media/jfparis/aca6ec8a-c5d9-4ae5-a540-f0ef948365be"
2PHONE_NAME="galaxys9"
3FILE_NAME="`date +%F`-$PHONE_NAME.ab"
4CLOUD_BUCKET="wasabi:phone-images"
5adb backup -apk -shared -all -f $LOCAL_STORAGE/$FILE_NAME  && rclone copy --progress $FILE_NAME $CLOUD_BUCKET