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