bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Directories are listed like files, no trailing slash shown


From: Live user
Subject: Re: [Bug-tar] Directories are listed like files, no trailing slash shown
Date: Wed, 26 Dec 2012 22:16:55 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 05/11/2012 11:54, Joerg Schilling wrote:
Live user wrote:

The original tar archive was generated by Android BackupManager, which
is not including the trailing slash for directories. Is there any
possibility to do the same with GNU Tar?

I believe not, but star allows you to do this with:

        -no-dirslash    don't append a slash to directory names

as long as you don't tell it to create "old tar" archives.

star is not available for some operating systems, which is even worse if you are using windows.

Luckily, there's a much better way using pax:
cat list-of-files-and-folders.txt | pax -wd > archive.tar



reply via email to

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