View difference between Paste ID: mFXJ3w36 and pCHm38Ry
SHOW: | | - or go back to the newest paste.
1
@echo off
2
title Ultimate Backup Tool
3
if exist adb.exe (
4
echo Okay
5
) else (
6
echo ADB not found in path!
7
pause
8
exit
9
)
10
goto menu
11
:menu
12
cls
13
echo				    Ultimate Backup tool
14
echo				        by Gigadroid
15
echo				     xda-developers.com
16
echo.
17
echo Notices:
18
echo Make sure that USB Debugging is enabled!
19
echo This will not back up SMS messages!
20
echo Set a desktop backup password under Developer Options. It seems it would fail otherwise!
21
echo The backup will be saved in C:\backup\backup.ab
22
echo.
23
echo What would you like to do?
24
echo.
25
echo 1. Backup all without system apps
26
echo 2. Backup all with system apps (unsafe)
27
echo 3. Backup app and device data (not the APKs themselves)
28
echo 4. Backup apps
29
echo 5. Backup device shared storage / SD card contents
30
echo 6. Restore
31
echo 7. Quit
32
echo.
33
:choice
34
set /P C=Choose a option:
35
if "%C%"=="7" goto quit
36
if "%C%"=="6" goto restore
37
if "%C%"=="5" goto sd
38
if "%C%"=="4" goto apps
39
if "%C%"=="3" goto appsdevice
40
if "%C%"=="2" goto system
41
if "%C%"=="1" goto all
42
goto choice
43
:all
44
echo Look at your phone.
45
echo Wait until you see a message saying 'Backup complete' or your phone returns to the home screen.
46
adb backup -apk -shared -all -nosystem -f C:\backup\backup.ab
47
goto menu
48
:system
49
echo Look at your phone.
50
echo Wait until you see a message saying 'Backup complete' or your phone returns to the home screen.
51
adb backup -apk -shared -all -system -f C:\backup\backup.ab
52
goto menu
53
:appsdevice
54
echo Look at your phone.
55
echo Wait until you see a message saying 'Backup complete' or your phone returns to the home screen.
56
adb backup -all -f C:\backup\backup.ab
57
goto menu
58
:apps
59
echo Look at your phone.
60
echo Wait until you see a message saying 'Backup complete' or your phone returns to the home screen.
61
adb backup -apk -noshared - nosystem -f C:\backup\backup.ab
62
goto menu
63
:sd
64
echo Look at your phone.
65
echo Wait until you see a message saying 'Backup complete' or your phone returns to the home screen.
66
adb backup -noapk -shared -nosystem -f C:\backup\backup.ab
67
goto menu
68
:restore
69
echo Look at your phone and type your password.
70
adb restore C:\backup\backup.ab
71
goto menu
72
:quit
73
exit
74
:end