linux - How to extract tar (ed) Android repo? -
i'm restoring linux partition backups (mostly non compressed tarballs). i'm facing problem while extracting tarball backup of synced android repo. tared existing repo simple tar -cf command
, i'm extracting using tar -xf blah.tar
. i'm getting next error.
http://pastebin.com/rkyu9qvd
dump of tar -tvf blah.tar
http://pastebin.com/wyrwu3v2 (truncated)
i think problem symlinks. illustration consider failed extraction of
.repo/projects/packages/providers/downloadprovider.git/info/exclude
if files extracted serially show -t (correct me if i'm wrong) first should extract .repo/projects/packages/providers/downloadprovider.git/info
because symlink (look @ dump lrwxrwxrwx bootmgr/bootmgr 0 2014-03-23 11:02 .repo/projects/packages/providers/downloadprovider.git/info -> ../../../../project-objects/platform/packages/providers/downloadprovider.git/info
) thinks why getting error while extracting it.
many other files extracted wrongly in way ex, first it'll create a/b/c.x
path extract c.x
later founds b symlink directory , throws error file exist
so ideas how should extract or impossible.
if impossible other improve way backup existing android repo can move other hdd.
from tar documentation:
normally, when tar archives symbolic link, writes block archive naming target of link. in way, tar archive faithful record of file scheme contents. when
--dereference' (-h') used with
--create' (-c'), tar archives files symbolic links point to, instead of links themselves.
so seek archive tar -chf ...
, guess issues solved.
android linux git repository tar
No comments:
Post a Comment