Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are there duplicate files when extracting tar.gz archive

Tags:

shell

tar

7zip

I have a strange problem with tar.gz archives that I do not understand.

I create the archive on a linux server with tar -czf

When I extract them on a windows machine using 7z x, I always get notifications that some (not all) files already exist. (They are extracted to an empty directory.)

The files it wants to replace have todays date, the ones already there have the original (modified on) date they had on the server.

Since I want to preserve the original timestamps I can use the -aos option for 7z, but I would like to understand why this is happening and make sure that I have an identical mirror of the files on the server after unpacking locally.

like image 897
Manfred Wisniewski Avatar asked Jul 08 '15 12:07

Manfred Wisniewski


1 Answers

:D The problem is a derelict duplicate directory that exists both as uppercase and lowercase on the Linux server - which of course can only be one directory when extracted on the Windows System ( \Mydir\ and \mydir\ ) problem solved. :)

Thanks for the help!

like image 174
Manfred Wisniewski Avatar answered Oct 19 '22 11:10

Manfred Wisniewski