Add android entry

This commit is contained in:
RealStickman 2022-11-18 19:25:06 +01:00
parent c9efca0dd2
commit 9fe7f7b38b
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,16 @@
---
title: ADB
visible: true
---
[toc]
## Full Storage backup
The easiest, and probably intended way to copy files using adb can be seen in the following command.
`$ adb pull -a -p /sdcard/ ./<target folder>`
The exmple here makes a copy of all content in "sdcard", the user's data directory.
### Compressed backup
Using this command, a backup can be pulled as well. This time however, it is passed to zstd for compression.
Tar on the phone doesn't do much except go through all files and send them to the terminal's STDOUT. All the compression happens on the host.
`$ adb exec-out "tar -cf - /sdcard/* 2>/dev/null" | zstd -19 -T16 -v -o sdcard.zstd`

View File

@ -0,0 +1,6 @@
---
title: Android
visible: true
---
[toc]