From 9fe7f7b38b9baf815a9db726a42b9e2a32db8dd4 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 18 Nov 2022 19:25:06 +0100 Subject: [PATCH] Add android entry --- pages/04.other/20.android/01.adb/default.en.md | 16 ++++++++++++++++ pages/04.other/20.android/default.en.md | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 pages/04.other/20.android/01.adb/default.en.md create mode 100644 pages/04.other/20.android/default.en.md diff --git a/pages/04.other/20.android/01.adb/default.en.md b/pages/04.other/20.android/01.adb/default.en.md new file mode 100644 index 0000000..71674af --- /dev/null +++ b/pages/04.other/20.android/01.adb/default.en.md @@ -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/ ./` +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` diff --git a/pages/04.other/20.android/default.en.md b/pages/04.other/20.android/default.en.md new file mode 100644 index 0000000..fafb716 --- /dev/null +++ b/pages/04.other/20.android/default.en.md @@ -0,0 +1,6 @@ +--- +title: Android +visible: true +--- + +[toc]