Some stuff
This commit is contained in:
parent
562536e127
commit
930f36cb12
@ -11,6 +11,12 @@ The easiest, and probably intended way to copy files using adb can be seen in th
|
||||
The exmple here makes a copy of all content in "sdcard", the user's data directory.
|
||||
|
||||
### Compressed backup
|
||||
> [Stackoverflow answer](https://stackoverflow.com/a/39429196)
|
||||
|
||||
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.
|
||||
*All data has to be transfered first. very slow with USB 2.0*
|
||||
`$ adb exec-out "tar -cf - /sdcard/* 2>/dev/null" | zstd -19 -T16 -v -o sdcard-2022-11-18.zst`
|
||||
|
||||
*this actually works*
|
||||
`$ adb exec-out 'GZIP="-9" /system/xbin/busybox tar -czf - /sdcard/*' > sdcard.tar.gz`
|
||||
|
Loading…
Reference in New Issue
Block a user