Skip to content

Commit af285e5

Browse files
committed
Choose what types of data to restore
1 parent ba30652 commit af285e5

File tree

5 files changed

+123
-97
lines changed

5 files changed

+123
-97
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ There are 10 environment variables that control what the script does without use
130130
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.
131131
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).
132132
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).
133134

134135
Examples:
135136

backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ if [ "$mode" = 'Wireless' ]; then
196196
adb disconnect
197197
fi
198198

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. 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."

companion_app/pubspec.lock

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
8+
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.11.0"
11+
version: "2.12.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
16-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
16+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "2.1.1"
19+
version: "2.1.2"
2020
call_log:
2121
dependency: "direct main"
2222
description:
@@ -29,26 +29,26 @@ packages:
2929
dependency: transitive
3030
description:
3131
name: characters
32-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
32+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.3.0"
35+
version: "1.4.0"
3636
clock:
3737
dependency: transitive
3838
description:
3939
name: clock
40-
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
40+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.1.1"
43+
version: "1.1.2"
4444
collection:
4545
dependency: transitive
4646
description:
4747
name: collection
48-
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
48+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
4949
url: "https://pub.dev"
5050
source: hosted
51-
version: "1.19.0"
51+
version: "1.19.1"
5252
csv:
5353
dependency: "direct main"
5454
description:
@@ -77,10 +77,10 @@ packages:
7777
dependency: transitive
7878
description:
7979
name: fake_async
80-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
80+
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "1.3.1"
83+
version: "1.3.2"
8484
ffi:
8585
dependency: transitive
8686
description:
@@ -140,18 +140,18 @@ packages:
140140
dependency: transitive
141141
description:
142142
name: leak_tracker
143-
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
143+
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
144144
url: "https://pub.dev"
145145
source: hosted
146-
version: "10.0.7"
146+
version: "10.0.8"
147147
leak_tracker_flutter_testing:
148148
dependency: transitive
149149
description:
150150
name: leak_tracker_flutter_testing
151-
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
151+
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
152152
url: "https://pub.dev"
153153
source: hosted
154-
version: "3.0.8"
154+
version: "3.0.9"
155155
leak_tracker_testing:
156156
dependency: transitive
157157
description:
@@ -172,10 +172,10 @@ packages:
172172
dependency: transitive
173173
description:
174174
name: matcher
175-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
175+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
176176
url: "https://pub.dev"
177177
source: hosted
178-
version: "0.12.16+1"
178+
version: "0.12.17"
179179
material_color_utilities:
180180
dependency: transitive
181181
description:
@@ -188,18 +188,18 @@ packages:
188188
dependency: transitive
189189
description:
190190
name: meta
191-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
191+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
192192
url: "https://pub.dev"
193193
source: hosted
194-
version: "1.15.0"
194+
version: "1.16.0"
195195
path:
196196
dependency: transitive
197197
description:
198198
name: path
199-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
199+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
200200
url: "https://pub.dev"
201201
source: hosted
202-
version: "1.9.0"
202+
version: "1.9.1"
203203
permission_handler:
204204
dependency: "direct main"
205205
description:
@@ -257,50 +257,50 @@ packages:
257257
dependency: transitive
258258
description:
259259
name: source_span
260-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
260+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
261261
url: "https://pub.dev"
262262
source: hosted
263-
version: "1.10.0"
263+
version: "1.10.1"
264264
stack_trace:
265265
dependency: transitive
266266
description:
267267
name: stack_trace
268-
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
268+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
269269
url: "https://pub.dev"
270270
source: hosted
271-
version: "1.12.0"
271+
version: "1.12.1"
272272
stream_channel:
273273
dependency: transitive
274274
description:
275275
name: stream_channel
276-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
276+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
277277
url: "https://pub.dev"
278278
source: hosted
279-
version: "2.1.2"
279+
version: "2.1.4"
280280
string_scanner:
281281
dependency: transitive
282282
description:
283283
name: string_scanner
284-
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
284+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
285285
url: "https://pub.dev"
286286
source: hosted
287-
version: "1.3.0"
287+
version: "1.4.1"
288288
term_glyph:
289289
dependency: transitive
290290
description:
291291
name: term_glyph
292-
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
292+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
293293
url: "https://pub.dev"
294294
source: hosted
295-
version: "1.2.1"
295+
version: "1.2.2"
296296
test_api:
297297
dependency: transitive
298298
description:
299299
name: test_api
300-
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
300+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
301301
url: "https://pub.dev"
302302
source: hosted
303-
version: "0.7.3"
303+
version: "0.7.4"
304304
vector_math:
305305
dependency: transitive
306306
description:
@@ -313,10 +313,10 @@ packages:
313313
dependency: transitive
314314
description:
315315
name: vm_service
316-
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
316+
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
317317
url: "https://pub.dev"
318318
source: hosted
319-
version: "14.3.0"
319+
version: "14.3.1"
320320
win32:
321321
dependency: transitive
322322
description:
@@ -334,5 +334,5 @@ packages:
334334
source: hosted
335335
version: "1.1.5"
336336
sdks:
337-
dart: ">=3.5.0 <4.0.0"
337+
dart: ">=3.7.0-0 <4.0.0"
338338
flutter: ">=3.18.0-18.0.pre.54"

functions/helper.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,13 @@ function remove_backup_tmp() {
168168
cecho "Cleaning up after backup/restore..."
169169
if [ "$data_erase_choice" = "Slow" ]; then
170170
cecho "Securely erasing temporary files, this will take a while."
171-
sleep 3
172171
srm -v -r -l ./backup-tmp
173172
elif [ "$data_erase_choice" = "Extra Slow" ]; then
174173
cecho "Very securely erasing temporary files, this will take a long time."
175-
sleep 3
176174
srm -v -r ./backup-tmp
177175
else
178176
cecho "Using the 'Fast' data erase mode."
179-
sleep 3
180-
rm -rfv backup-tmp
177+
rm -rf backup-tmp
181178
fi
182179
cecho "Cleanup complete."
183180
else

0 commit comments

Comments
 (0)