bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] TAR creates hard links or duplicated files inside archive


From: Live user
Subject: Re: [Bug-tar] TAR creates hard links or duplicated files inside archive when using -T option
Date: Fri, 2 Nov 2012 17:50:08 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 02/11/2012 15:27, Tim Kientzle wrote:

I'm curious:  Why do you think the order matters?


When creating a tar file in order to create an android ab backup based on that tar archive, the order does matter. Check here:

http://nelenkov.blogspot.com/2012/06/unpacking-android-backups.html


Nelenkov said:

In short, simply tarring the unpacked backup directory won't work, so make sure you specify the files to include in the proper order by creating a backup file list and passing to tar with the -T option. The easiest way to create one is to run tar tvf against the decompresed and decrypted original backup. Once you create a proper tar file, you can pack it with the provided utility and feed it to adb restore.


Did you really mean to add the above file twice?
There are a bunch of other files that also appear twice
in your file list.

The duplication above is what's causing this hardlink entry.
(A hardlink entry is just tar's way of avoiding storing a file
contents twice.)


There are no hard or symbolic links in the list file, not pipe type files nor anything strange, just directories and files.

address@hidden:~/test$ find apps/ shared/ -exec ls -l {} \; | grep gameloft

drwxrwxr-x 6 dorian dorian 4096 Nov 2 09:05 com.gameloft.android.ANMP.GloftA7HM -rw------- 1 dorian dorian 1104 Oct 28 09:51 apps/com.gameloft.android.ANMP.GloftA7HM/_manifest -rw------- 1 dorian dorian 22069 Oct 27 05:13 apps/com.gameloft.android.ANMP.GloftA7HM/f/prs.edat -rw------- 1 dorian dorian 520 Oct 27 05:13 apps/com.gameloft.android.ANMP.GloftA7HM/f/serverConfig.sav -rw------- 1 dorian dorian 60465 Oct 27 05:23 apps/com.gameloft.android.ANMP.GloftA7HM/f/profile_0 -rw------- 1 dorian dorian 0 Oct 27 05:13 apps/com.gameloft.android.ANMP.GloftA7HM/f/testSaveSize.test -rw------- 1 dorian dorian 60437 Oct 23 07:44 apps/com.gameloft.android.ANMP.GloftA7HM/f/profile.init -rw------- 1 dorian dorian 18 Oct 27 05:23 apps/com.gameloft.android.ANMP.GloftA7HM/f/BI.trk -rw------- 1 dorian dorian 9 Oct 27 05:13 apps/com.gameloft.android.ANMP.GloftA7HM/f/version.played -rw------- 1 dorian dorian 1102 Oct 27 05:23 apps/com.gameloft.android.ANMP.GloftA7HM/f/batched_tracked_events.dat -rw------- 1 dorian dorian 8 Oct 27 05:23 apps/com.gameloft.android.ANMP.GloftA7HM/f/tracking_data2.dat -rw------- 1 dorian dorian 0 Oct 27 05:23 apps/com.gameloft.android.ANMP.GloftA7HM/f/prio_tracking_data.dat -rw------- 1 dorian dorian 8720 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/db/webview.db-journal -rw-rw---- 1 dorian dorian 0 Oct 23 07:48 apps/com.gameloft.android.ANMP.GloftA7HM/db/webviewCookiesChromium.db -rw-rw---- 1 dorian dorian 0 Oct 23 07:48 apps/com.gameloft.android.ANMP.GloftA7HM/db/webviewCookiesChromiumPrivate.db -rw-rw---- 1 dorian dorian 40960 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/db/webview.db -rw-rw---- 1 dorian dorian 168 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/sp/GLGamePrefs.xml -rw-rw---- 1 dorian dorian 739 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/sp/com.android.vending.licensing.APKExpansionPolicy.xml -rw-rw---- 1 dorian dorian 65 Oct 23 07:44 apps/com.gameloft.android.ANMP.GloftA7HM/sp/facebook-session.xml -rw-rw---- 1 dorian dorian 680 Oct 27 05:14 apps/com.gameloft.android.ANMP.GloftA7HM/sp/GLPN.xml -rw-rw---- 1 dorian dorian 294 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/sp/com.google.android.c2dm.xml -rw-rw---- 1 dorian dorian 288 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/sp/ExpansionPrefs.xml -rw-rw---- 1 dorian dorian 131 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/sp/GLGameTInfo.xml -rw-rw---- 1 dorian dorian 1047 Oct 27 05:13 apps/com.gameloft.android.ANMP.GloftA7HM/sp/GDRMPolicy.xml -rw------- 1 dorian dorian 11 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/r/InsTime -rw------- 1 dorian dorian 393 Oct 27 05:18 apps/com.gameloft.android.ANMP.GloftA7HM/r/androidTrophy.dat -rw------- 1 dorian dorian 3 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/r/prefs/gl_ver -rw------- 1 dorian dorian 16994979 Oct 23 07:43 apps/com.gameloft.android.ANMP.GloftA7HM/r/libs/libAndroid.so drwxrwxr-x 2 dorian dorian 4096 Oct 23 07:44 com.gameloft.android.ANMP.GloftA7HM -rw-rw-r-- 1 dorian dorian 1470508757 Oct 23 07:43 main.101.com.gameloft.android.ANMP.GloftA7HM.obb -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7121.bin -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7123.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7135.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7133.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7131.bin -rw-rw-r-- 1 dorian dorian 0 Oct 23 07:43 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/.nomedia -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7127.bin -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7119.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7143.bin -rw-rw-r-- 1 dorian dorian 1470508757 Oct 23 07:43 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/main.101.com.gameloft.android.ANMP.GloftA7HM.obb -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7129.bin -rw-rw-r-- 1 dorian dorian 10458 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7125.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7141.bin -rw-rw-r-- 1 dorian dorian 11401 Oct 23 07:44 shared/0/Android/obb/com.gameloft.android.ANMP.GloftA7HM/imgiab7139.bin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]