You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ You need 3 functions in your hook for it to be properly initialized by the scrip
118
118
119
119
Please keep in mind that this project has minimal support for automation and very little support will be provided. In order to export contacts, you still need to have physical access to the device you're backing up as an "unattended mode" for the companion app hasn't been implemented yet.
120
120
121
-
There are 10 environment variables that control what the script does without user input:
121
+
There are 11 environment variables that control what the script does without user input:
122
122
123
123
1.`unattended_mode` - Instead of waiting for a key press, sleeps for 5 seconds. Can be any value.
124
124
2.`selected_action` - What the script should do when run. Possible values are `Backup` and `Restore` (case sensitive).
@@ -130,6 +130,7 @@ There are 10 environment variables that control what the script does without use
130
130
8.`data_erase_choice` - Whether to securely erase temporary files or not. Possible values are `Fast`, `Slow` and `Extra Slow` (case sensitive). The value of this variable is ignored if the command `srm` isn't present on your computer.
131
131
9.`discouraged_disable_archive` - Disables the creation of a backup archive, only creates a backup *directory* with no compression, encryption or other features. This is not recommended, although some may find it useful to deduplicate backups and save space. Restoring backups created with this option enabled is not supported by default; you must manually create an archive from the backup directory and then restore it. Possible values are `yes` or `no` (case sensitive).
132
132
10.`compression_level` - One of 0, 1, 3, 5, 7, 9. Where 9 is the best an slowest copression and 0 is no compression and the fastest level. If most of your data is already compressed, for example jpg pictures or mp3 videos, you will not loose much volume by compressing it.
133
+
11.`restore_apps`, `restore_storage`, `restore_contacts` - Whether to restore apps, internal storage and contacts or not. Possible values are `yes` or `no` (case sensitive).
The `get.openandroidbackup.me` convenience script is deprecated starting January 1st 2024 due to potential security implications associated with running unverified code from the internet as well as its limited support for various system configurations. Please use the official usage instructions instead.
146
-
147
-
Removal of the script is planned for April 2024, although it may stay up for longer if it's still being used by a significant number of people.
148
-
149
144
## Building companion app
150
145
151
146
**Note:** You don't need to do this, as the precompiled companion app is automatically downloaded at runtime from GitHub Releases.
Copy file name to clipboardExpand all lines: backup.sh
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ set -e
5
5
# This is used to download a stable, compatible version of the Android companion app as well as ensure backwards compatibility,
6
6
# so it should match the tag name in GitHub Releases.
7
7
# TODO: load this dynamically, i.e. configure our build system to automatically update the APP_VERSION
8
-
APP_VERSION="v1.0.18"
8
+
APP_VERSION="v1.1.0"
9
9
10
10
# We use whiptail for showing dialogs.
11
11
# Whiptail is used similarly as dialog, but we can't install it on macOS using Homebrew IIRC.
@@ -31,13 +31,21 @@ fi
31
31
32
32
# Check if other dependencies are installed: adb, tar, pv, 7z, bc, timeout
33
33
# srm is optional so we don't check for it
34
-
commands=("tar""pv""7z""adb""bc""timeout")
34
+
commands=("tar""pv""7z""adb""bc")
35
35
36
36
# Add zenity to the list of commands if we're running in WSL
37
37
if [ "$(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip')" ];then
38
38
commands+=("zenity")
39
39
fi
40
40
41
+
# Add gtimeout to the list of commands if we're running on macOS
42
+
if [ "$(uname)"="Darwin" ];then
43
+
commands+=("gtimeout")
44
+
else
45
+
# For the rest of the systems, we use the standard timeout command
46
+
commands+=("timeout")
47
+
fi
48
+
41
49
forcmdin"${commands[@]}"
42
50
do
43
51
# adb is a function in WSL so we're using type instead of command -v
@@ -188,4 +196,4 @@ if [ "$mode" = 'Wireless' ]; then
188
196
adb disconnect
189
197
fi
190
198
191
-
cecho "If this project helped you, please star the GitHub repository. It lets me know that there are people using this script and I should continue working on it. Donations are available in my GitHub profile and will be appreciated too."
199
+
cecho "If this project helped you, please star the GitHub repository. It lets me know that there are people using this script and I should continue working on it."
0 commit comments