Busybox do you have the right one?

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
adb shell

busybox tar --Usage

Code:
busybox tar --Usage
tar: unrecognized option '--Usage'
BusyBox v1.18.3 (2011-07-08 15:05:12 CST) multi-call binary.

Usage: tar -[cxtvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
	c	Create
	x	Extract
	t	List
Options:
	f	Name of TARFILE ('-' for stdin/out)
	C	Change to DIR before operation
	v	Verbose
	O	Extract to stdout
	h	Follow symlinks
	exclude	File to exclude
	X	File with names to exclude
	T	File with names to include

What you are looking for is
Code:
z	(De)compress using gzip
if
Code:
z	(De)compress using gzip
isn't displayed your dump will excluded system.tgz

system.tgz is very important, it is the most important part of your dump.

If
Code:
z	(De)compress using gzip
isn't displayed you need to swap out your busybox before running dump commands or scripts.

download busybox

adb push busybox /data/local/tmp/busybox

adb shell

chmod 755 /data/local/tmp/busybox

/data/local/tmp/busybox mount -o remount,rw /system

/data/local/tmp/busybox cp /data/local/tmp/busybox /system/bin/busybox

busybox tar --Usage

Code:
tar: unrecognized option `--Usage'
BusyBox v1.18.4 (2011-04-04 18:40:20 CDT) multi-call binary.

Usage: tar -[cxtzjamvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
	c	Create
	x	Extract
	t	List
Options:
	f	Name of TARFILE ('-' for stdin/out)
	C	Change to DIR before operation
	v	Verbose
	z	(De)compress using gzip
	j	(De)compress using bzip2
	a	(De)compress using lzma
	O	Extract to stdout
	h	Follow symlinks
	m	Don't restore mtime
	exclude	File to exclude
	X	File with names to exclude
	T	File with names to include

Now the
Code:
z	(De)compress using gzip
is displayed you can now dump your tablet and system.tgz will be created.
 
Last edited:

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Thanks for the info. A check of my original backups show system.tar Does this have to be gzip before using for restore ? I used your 7042 without livesuite instructions originally.

pure tar is just fine, you don't need gzip if using pure tar like you did. restoring pure tar is the same as restoring compressed version minus the z in the command. this thread is for users making dumps using z ie compressed backups. still good that you checked and noticed you had a system backup, everyone should take a moment and check their backups to see if they have a system dump.
 
Top