Why there are duplicate files when extracting a tar.gz archive

I have a strange problem with tar.gz archives that I don't understand.

I am creating an archive on 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 that he wants to replace have today's date, those that already exist have the original (changed) date that they had on the server.

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

+5
source share
1 answer

: D The problem lies in the running duplicate directory, which exists both in upper and lower case on the Linux server - which, of course, can be only one directory when extracted on a Windows system (\ Mydir \ and \ mydir \) .: )

Thanks for the help!

+4
source

All Articles