View previous topic :: View next topic |
Author |
Message |
philip Guru
Joined: 10 Jun 2003 Posts: 535 Location: Sweden
|
Posted: Sat Feb 26, 2011 1:36 pm Post subject: tar -xvf <archive> <file.xml> hangs |
|
|
I am trying to extract old bookmarks from from my backup which resides on a separate disk
Code: | # tar -xvf /mnt/hdb1/Backups/archive_2010_11_12.bz2 /home/<user>/.kde4/share/apps/konqueror/bookmarks.xml |
But tar hangs (or loops) at this point. Nothing happens and the command line prompt is not returned. Has anyone experienced this with tar?
Code: | # tar -xvf /mnt/hdb1/Backups/archive_2010_11_12.bz2 |
Works fine, but I get the whole archive unpacked, while I just wanted this particular file. _________________ /Phil |
|
Back to top |
|
|
s_bernstein Apprentice
Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Sat Feb 26, 2011 3:14 pm Post subject: |
|
|
Your cmd line looks good to me, it should do the trick. But depending on the size of your tar it will take a long time to do so because have to read all the data serial up to the point your file is stored. Also the file will be restored in the original place. |
|
Back to top |
|
|
philip Guru
Joined: 10 Jun 2003 Posts: 535 Location: Sweden
|
Posted: Sun Feb 27, 2011 10:35 pm Post subject: |
|
|
I beleive you are right. Traversing the compressed archive in serial order takes time. Also the syntax of the file being looked for needs to be exactly right. I have noticed that the leading slash (denoting the root directory) is missing in the archive file designations. This must be accounted for in the search string. _________________ /Phil |
|
Back to top |
|
|
|