FORUMS

How to backup compressed data from your android device to your computer

1,054 posts
Thanks Meter: 1,929
 
Post Reply Email Thread
22nd September 2016, 06:23 PM |#21  
xdvs23's Avatar
OP Senior Member
Flag Bavaria
Thanks Meter: 1,929
 
Donate to Me
More
Quote:
Originally Posted by J0NiK

replace with this one

Code:
adb shell mkfifo /bk.pipe && adb exec-out 'tar -cvap data/media/0 2>/bk.pipe' | dd of=sdcard.tar & adb shell cat /bk.pipe &

What's the difference?

Edit: Got it, changed it, thanks for pointing out.
22nd September 2016, 06:28 PM |#22  
xdvs23's Avatar
OP Senior Member
Flag Bavaria
Thanks Meter: 1,929
 
Donate to Me
More
Quote:
Originally Posted by Tarcis

allpartitions.tar: /sbin/sh: syntax error: unterminated quoted string on one tr

Try using " (double quotes) instead of ' (single quote)
Quote:
Originally Posted by Tarcis

mmcblk0.img: 0kb

Hmm......
Quote:
Originally Posted by Tarcis

sdcard.raw : /sbin/sh: syntax error: unexpected redirection

strange....
Quote:
Originally Posted by Tarcis

userdata:img: dd: can't open '/dev/block/bootdevice/by-name/userdata': No such file or directory

You simply dont have a partition called userdata, you can view all available partitions using:

Code:
adb root
adb shell ls /dev/block/bootdevice/by-name/
The Following User Says Thank You to xdvs23 For This Useful Post: [ View ] Gift xdvs23 Ad-Free
27th September 2016, 02:49 AM |#23  
Junior Member
Thanks Meter: 1
 
More
great job
The Following User Says Thank You to nicechan For This Useful Post: [ View ] Gift nicechan Ad-Free
27th September 2016, 11:43 PM |#24  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by xdvs23

Try using " (double quotes) instead of ' (single quote)

Hmm......

strange....

You simply dont have a partition called userdata, you can view all available partitions using:

Code:
adb root
adb shell ls /dev/block/bootdevice/by-name/

They worked on cygwin!! THANK YOU!
Only the by-name thing didn´t, and the command you said did not either (ls /dev/....)
I used the by-name path from this thread (same phone as mine [nexus 5] and it worked)
http://forum.xda-developers.com/goog...ition-t2577447 -> /dev/block/platform/msm_sdcc.1/by-name/userdata
The Following User Says Thank You to Tarcis For This Useful Post: [ View ] Gift Tarcis Ad-Free
28th September 2016, 01:54 PM |#25  
xdvs23's Avatar
OP Senior Member
Flag Bavaria
Thanks Meter: 1,929
 
Donate to Me
More
Quote:
Originally Posted by Tarcis

They worked on cygwin!! THANK YOU!
Only the by-name thing didn´t, and the command you said did not either (ls /dev/....)
I used the by-name path from this thread (same phone as mine [nexus 5] and it worked)
http://forum.xda-developers.com/goog...ition-t2577447 -> /dev/block/platform/msm_sdcc.1/by-name/userdata

That's great. I am working on my backup tools (including a new bash framework) from time to time, so you could make use of it when it's done.
The Following 2 Users Say Thank You to xdvs23 For This Useful Post: [ View ] Gift xdvs23 Ad-Free
28th September 2016, 01:57 PM |#26  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by xdvs23

That's great. I am working on my backup tools (including a new bash framework) from time to time, so you could make use of it when it's done.

Most certantly! If you want\need, I can be your beta tester.
The Following User Says Thank You to Tarcis For This Useful Post: [ View ] Gift Tarcis Ad-Free
28th September 2016, 02:20 PM |#27  
xdvs23's Avatar
OP Senior Member
Flag Bavaria
Thanks Meter: 1,929
 
Donate to Me
More
Quote:
Originally Posted by Tarcis

Most certantly! If you want\need, I can be your beta tester.

That would be great.
Which OS are you using?
28th September 2016, 02:27 PM |#28  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by xdvs23

That would be great.
Which OS are you using?

Windows
28th September 2016, 08:35 PM |#29  
Account currently disabled
Thanks Meter: 870
 
More
Quote:
Originally Posted by char101

Something like (run in the host console)

Code:
adb exec-out "cat <sdcard partition> 2>/dev/null" > sdcard.raw
Or

Code:
adb exec-out "dd if=<sdcard partition> bs=64k 2>/dev/null" > sdcard.raw

If you're going to do one of those (without compression), then you might as well just do "adb pull <sdcard partition>"
30th September 2016, 07:31 PM |#30  
xdvs23's Avatar
OP Senior Member
Flag Bavaria
Thanks Meter: 1,929
 
Donate to Me
More
Quote:
Originally Posted by doitright

If you're going to do one of those (without compression), then you might as well just do "adb pull <sdcard partition>"

Well, it often does not work...
3rd October 2016, 10:12 AM |#31  
Member
Thanks Meter: 1
 
More
Please refer this
Quote:
Originally Posted by xdvs23

Then tell me how to create a nandroid backup from your internal storage (/sdcard or /data/media/0)

hi i have learnt from this blog please check it Nandroid backup
Post Reply Subscribe to Thread

Tags
android, backup, compress, tar, twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes