zip command show warnings “name not matched” about symlinks, outside of my working directory, pointing to non-existing target2019 Community Moderator ElectionUnable to stat symbolic link to fileHow can I ignore “zip warning: name not matched” when using zip command with -d option?“zip warning: name not matched” while compressing a directoryUnix zip command junk-paths flag not working on same file namestargeting all zip files starting with a certain string and ending with a certain oneZip but do not scan excluded folderKSH shell script zip command not working correctly: eval: zip: cannot execute [Exec format error]Terminal command to add a directory to many existing zip files

Do I have to know the General Relativity theory to understand the concept of inertial frame?

What happens if I try to grapple an illusory duplicate from the Mirror Image spell?

Identifying "long and narrow" polygons in with PostGIS

How do I prevent inappropriate ads from appearing in my game?

Difference between shutdown options

Animation: customize bounce interpolation

Why do Radio Buttons not fill the entire outer circle?

Can you identify this lizard-like creature I observed in the UK?

El Dorado Word Puzzle II: Videogame Edition

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

Is there a distance limit for minecart tracks?

Proving an identity involving cross products and coplanar vectors

Why does a 97 / 92 key piano exist by Bösendorfer?

How to make money from a browser who sees 5 seconds into the future of any web page?

How to leave product feedback on macOS?

Does the Crossbow Expert feat's extra crossbow attack work with the reaction attack from a Hunter ranger's Giant Killer feature?

Overlapping circles covering polygon

Sigmoid with a slope but no asymptotes?

PTIJ: Which Dr. Seuss books should one obtain?

Why didn't Voldemort know what Grindelwald looked like?

Air travel with refrigerated insulin

How much do grades matter for a future academia position?

Sound waves in different octaves



zip command show warnings “name not matched” about symlinks, outside of my working directory, pointing to non-existing target



2019 Community Moderator ElectionUnable to stat symbolic link to fileHow can I ignore “zip warning: name not matched” when using zip command with -d option?“zip warning: name not matched” while compressing a directoryUnix zip command junk-paths flag not working on same file namestargeting all zip files starting with a certain string and ending with a certain oneZip but do not scan excluded folderKSH shell script zip command not working correctly: eval: zip: cannot execute [Exec format error]Terminal command to add a directory to many existing zip files










0















I have some weird warnings when zipping a directory's content. I use a command line I use for a ton of websites backup since years and never had such issue, and I try to figure out why I have the warnings (even though the zip files seem created correctly) and I fail to figure it out in a reasonable time (I have put what I found, keep reading). Hopefully someone can help.



I go in the directory I want to backup to a zip file:



cd /home/mickoz/michael.muryn.name


Here is the command I run (I tailored it to debug only and reproduce problem):



zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip > test.log


For some reason it logs these warnings right at the beginning:



zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/daily.html
zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/index.html
zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/longterm.html
zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/monthly.html
zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/resources
zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/index.html
zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/monthly.html
zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/resources
zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/index.html
zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/monthly.html
zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/resources
zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


Now, there is NO symlinks in the directory I zip content of (I did execute a command to find if there was even deepdown and there is none).



Heck, just to be sure, I just even tried to create a new directory /home/mickoz/michael.muryn.name2, created two text files in it only. Run the same zip command I put above in that new directory... and the exact same warnings appear! Seem like it tries to search outside of the directory, but I fail to see why as I exclude "..*" in my zip command and that should do the job.



I even tried to do it in a directory named /home/mickoz/testzipbackup in case the dots in the directory name was causing problem and the same result.



Any idea what may be causing this? How can I debug this?




Additional infos:



There was a symbolic link located there



/home/mickoz/muryn.name/.#svn-commit.tmp -> mickoz@here.22973


Take note that the symlink was pointing to something non-existing. This seems important as I debug more and more.



I deleted it and re-executed my test zip command, and this line disappeared from the log:



zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


So it definitely try to search outside the directory for some reason and I fail to see why it does it with what looks like symbolic link only, while excluding files correctly it seems.




From there I dug deeper and did a search for all symbolic links on my user account by using this command in the root of the home directory:



find . -type l -ls


Here is a specific and interesting sample of the result:



14575211295 0 lrwxrwxrwx 1 root root 49 Aug 6 2011 ./logs/muryn.name/http.2810083 -> /home/_domain_logs/mickoz/muryn.name/http.2810083
14145610800 0 lrwxrwxrwx 1 root root 21 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/access.log.0 -> access.log.2011-08-05
14145612338 0 lrwxrwxrwx 1 root root 20 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/error.log.0 -> error.log.2011-08-05
15649147256 0 lrwxrwxrwx 1 root root 67 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/daily.html -> /home/mickoz/logs/muryn.name/http.2810083/html/inactive_report.html
15649147257 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/index.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
15649147258 0 lrwxrwxrwx 1 root root 66 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/longterm.html -> /home/mickoz/logs/muryn.name/http.2810083/html/longterm/index.html
15649147259 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/monthly.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
15649147260 0 lrwxrwxrwx 1 root root 27 Oct 19 2009 ./logs/muryn.name/http.2810083.bak/html/resources -> /home/mickoz/logs/resources
14557793344 0 lrwxrwxrwx 1 root root 49 Mar 19 15:12 ./logs/muryn.name/http -> /home/_domain_logs/mickoz/muryn.name/http.2810083


I analyzed this and found out that only symlinks that are pointing to non-existing target appears in my zip command warnings.



Now, only have to understand why the zip command looks for those symlinks outside of the working directory and only acts/emits a warning on the symlinks pointing to non-existing target.










share|improve this question







New contributor




Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    I have some weird warnings when zipping a directory's content. I use a command line I use for a ton of websites backup since years and never had such issue, and I try to figure out why I have the warnings (even though the zip files seem created correctly) and I fail to figure it out in a reasonable time (I have put what I found, keep reading). Hopefully someone can help.



    I go in the directory I want to backup to a zip file:



    cd /home/mickoz/michael.muryn.name


    Here is the command I run (I tailored it to debug only and reproduce problem):



    zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip > test.log


    For some reason it logs these warnings right at the beginning:



    zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/daily.html
    zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/index.html
    zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/longterm.html
    zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/monthly.html
    zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/resources
    zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/index.html
    zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/monthly.html
    zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/resources
    zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/index.html
    zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/monthly.html
    zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/resources
    zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


    Now, there is NO symlinks in the directory I zip content of (I did execute a command to find if there was even deepdown and there is none).



    Heck, just to be sure, I just even tried to create a new directory /home/mickoz/michael.muryn.name2, created two text files in it only. Run the same zip command I put above in that new directory... and the exact same warnings appear! Seem like it tries to search outside of the directory, but I fail to see why as I exclude "..*" in my zip command and that should do the job.



    I even tried to do it in a directory named /home/mickoz/testzipbackup in case the dots in the directory name was causing problem and the same result.



    Any idea what may be causing this? How can I debug this?




    Additional infos:



    There was a symbolic link located there



    /home/mickoz/muryn.name/.#svn-commit.tmp -> mickoz@here.22973


    Take note that the symlink was pointing to something non-existing. This seems important as I debug more and more.



    I deleted it and re-executed my test zip command, and this line disappeared from the log:



    zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


    So it definitely try to search outside the directory for some reason and I fail to see why it does it with what looks like symbolic link only, while excluding files correctly it seems.




    From there I dug deeper and did a search for all symbolic links on my user account by using this command in the root of the home directory:



    find . -type l -ls


    Here is a specific and interesting sample of the result:



    14575211295 0 lrwxrwxrwx 1 root root 49 Aug 6 2011 ./logs/muryn.name/http.2810083 -> /home/_domain_logs/mickoz/muryn.name/http.2810083
    14145610800 0 lrwxrwxrwx 1 root root 21 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/access.log.0 -> access.log.2011-08-05
    14145612338 0 lrwxrwxrwx 1 root root 20 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/error.log.0 -> error.log.2011-08-05
    15649147256 0 lrwxrwxrwx 1 root root 67 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/daily.html -> /home/mickoz/logs/muryn.name/http.2810083/html/inactive_report.html
    15649147257 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/index.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
    15649147258 0 lrwxrwxrwx 1 root root 66 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/longterm.html -> /home/mickoz/logs/muryn.name/http.2810083/html/longterm/index.html
    15649147259 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/monthly.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
    15649147260 0 lrwxrwxrwx 1 root root 27 Oct 19 2009 ./logs/muryn.name/http.2810083.bak/html/resources -> /home/mickoz/logs/resources
    14557793344 0 lrwxrwxrwx 1 root root 49 Mar 19 15:12 ./logs/muryn.name/http -> /home/_domain_logs/mickoz/muryn.name/http.2810083


    I analyzed this and found out that only symlinks that are pointing to non-existing target appears in my zip command warnings.



    Now, only have to understand why the zip command looks for those symlinks outside of the working directory and only acts/emits a warning on the symlinks pointing to non-existing target.










    share|improve this question







    New contributor




    Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I have some weird warnings when zipping a directory's content. I use a command line I use for a ton of websites backup since years and never had such issue, and I try to figure out why I have the warnings (even though the zip files seem created correctly) and I fail to figure it out in a reasonable time (I have put what I found, keep reading). Hopefully someone can help.



      I go in the directory I want to backup to a zip file:



      cd /home/mickoz/michael.muryn.name


      Here is the command I run (I tailored it to debug only and reproduce problem):



      zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip > test.log


      For some reason it logs these warnings right at the beginning:



      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/daily.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/index.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/longterm.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/monthly.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/resources
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/index.html
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/monthly.html
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/resources
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/index.html
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/monthly.html
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/resources
      zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


      Now, there is NO symlinks in the directory I zip content of (I did execute a command to find if there was even deepdown and there is none).



      Heck, just to be sure, I just even tried to create a new directory /home/mickoz/michael.muryn.name2, created two text files in it only. Run the same zip command I put above in that new directory... and the exact same warnings appear! Seem like it tries to search outside of the directory, but I fail to see why as I exclude "..*" in my zip command and that should do the job.



      I even tried to do it in a directory named /home/mickoz/testzipbackup in case the dots in the directory name was causing problem and the same result.



      Any idea what may be causing this? How can I debug this?




      Additional infos:



      There was a symbolic link located there



      /home/mickoz/muryn.name/.#svn-commit.tmp -> mickoz@here.22973


      Take note that the symlink was pointing to something non-existing. This seems important as I debug more and more.



      I deleted it and re-executed my test zip command, and this line disappeared from the log:



      zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


      So it definitely try to search outside the directory for some reason and I fail to see why it does it with what looks like symbolic link only, while excluding files correctly it seems.




      From there I dug deeper and did a search for all symbolic links on my user account by using this command in the root of the home directory:



      find . -type l -ls


      Here is a specific and interesting sample of the result:



      14575211295 0 lrwxrwxrwx 1 root root 49 Aug 6 2011 ./logs/muryn.name/http.2810083 -> /home/_domain_logs/mickoz/muryn.name/http.2810083
      14145610800 0 lrwxrwxrwx 1 root root 21 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/access.log.0 -> access.log.2011-08-05
      14145612338 0 lrwxrwxrwx 1 root root 20 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/error.log.0 -> error.log.2011-08-05
      15649147256 0 lrwxrwxrwx 1 root root 67 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/daily.html -> /home/mickoz/logs/muryn.name/http.2810083/html/inactive_report.html
      15649147257 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/index.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
      15649147258 0 lrwxrwxrwx 1 root root 66 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/longterm.html -> /home/mickoz/logs/muryn.name/http.2810083/html/longterm/index.html
      15649147259 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/monthly.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
      15649147260 0 lrwxrwxrwx 1 root root 27 Oct 19 2009 ./logs/muryn.name/http.2810083.bak/html/resources -> /home/mickoz/logs/resources
      14557793344 0 lrwxrwxrwx 1 root root 49 Mar 19 15:12 ./logs/muryn.name/http -> /home/_domain_logs/mickoz/muryn.name/http.2810083


      I analyzed this and found out that only symlinks that are pointing to non-existing target appears in my zip command warnings.



      Now, only have to understand why the zip command looks for those symlinks outside of the working directory and only acts/emits a warning on the symlinks pointing to non-existing target.










      share|improve this question







      New contributor




      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have some weird warnings when zipping a directory's content. I use a command line I use for a ton of websites backup since years and never had such issue, and I try to figure out why I have the warnings (even though the zip files seem created correctly) and I fail to figure it out in a reasonable time (I have put what I found, keep reading). Hopefully someone can help.



      I go in the directory I want to backup to a zip file:



      cd /home/mickoz/michael.muryn.name


      Here is the command I run (I tailored it to debug only and reproduce problem):



      zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip > test.log


      For some reason it logs these warnings right at the beginning:



      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/daily.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/index.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/longterm.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/monthly.html
      zip warning: name not matched: ../logs/michael.muryn.name/http.2810216.bak/html/resources
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/index.html
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/monthly.html
      zip warning: name not matched: ../logs/mickoz.dreamhosters.com/http.2150913.bak/html/resources
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/index.html
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/monthly.html
      zip warning: name not matched: ../logs/muryn.name/http.2810083.bak/html/resources
      zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


      Now, there is NO symlinks in the directory I zip content of (I did execute a command to find if there was even deepdown and there is none).



      Heck, just to be sure, I just even tried to create a new directory /home/mickoz/michael.muryn.name2, created two text files in it only. Run the same zip command I put above in that new directory... and the exact same warnings appear! Seem like it tries to search outside of the directory, but I fail to see why as I exclude "..*" in my zip command and that should do the job.



      I even tried to do it in a directory named /home/mickoz/testzipbackup in case the dots in the directory name was causing problem and the same result.



      Any idea what may be causing this? How can I debug this?




      Additional infos:



      There was a symbolic link located there



      /home/mickoz/muryn.name/.#svn-commit.tmp -> mickoz@here.22973


      Take note that the symlink was pointing to something non-existing. This seems important as I debug more and more.



      I deleted it and re-executed my test zip command, and this line disappeared from the log:



      zip warning: name not matched: ../muryn.name/.#svn-commit.tmp


      So it definitely try to search outside the directory for some reason and I fail to see why it does it with what looks like symbolic link only, while excluding files correctly it seems.




      From there I dug deeper and did a search for all symbolic links on my user account by using this command in the root of the home directory:



      find . -type l -ls


      Here is a specific and interesting sample of the result:



      14575211295 0 lrwxrwxrwx 1 root root 49 Aug 6 2011 ./logs/muryn.name/http.2810083 -> /home/_domain_logs/mickoz/muryn.name/http.2810083
      14145610800 0 lrwxrwxrwx 1 root root 21 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/access.log.0 -> access.log.2011-08-05
      14145612338 0 lrwxrwxrwx 1 root root 20 Aug 6 2011 ./logs/muryn.name/http.2810083.bak/error.log.0 -> error.log.2011-08-05
      15649147256 0 lrwxrwxrwx 1 root root 67 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/daily.html -> /home/mickoz/logs/muryn.name/http.2810083/html/inactive_report.html
      15649147257 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/index.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
      15649147258 0 lrwxrwxrwx 1 root root 66 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/longterm.html -> /home/mickoz/logs/muryn.name/http.2810083/html/longterm/index.html
      15649147259 0 lrwxrwxrwx 1 root root 73 Aug 5 2011 ./logs/muryn.name/http.2810083.bak/html/monthly.html -> /home/mickoz/logs/muryn.name/http.2810083/html/monthly/2011-08/index.html
      15649147260 0 lrwxrwxrwx 1 root root 27 Oct 19 2009 ./logs/muryn.name/http.2810083.bak/html/resources -> /home/mickoz/logs/resources
      14557793344 0 lrwxrwxrwx 1 root root 49 Mar 19 15:12 ./logs/muryn.name/http -> /home/_domain_logs/mickoz/muryn.name/http.2810083


      I analyzed this and found out that only symlinks that are pointing to non-existing target appears in my zip command warnings.



      Now, only have to understand why the zip command looks for those symlinks outside of the working directory and only acts/emits a warning on the symlinks pointing to non-existing target.







      symlink zip






      share|improve this question







      New contributor




      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 20 hours ago









      Michael MurynMichael Muryn

      31




      31




      New contributor




      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Michael Muryn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          1














          There are two things going on here.



          The first is that



          zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip


          is expanded by the shell to list everything matching * and .*, which includes .. in your case.



          The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns; so it sees ../logs/michael.muryn.name/http.2810216.bak/html/daily.html etc. and calls stat on them, which produces an error, and zip outputs “name not matched” as a result.



          The usual way to avoid this is to specify .[^.]* instead of .*, or since you’re also matching *, run



          zip -r -qv test.zip . -x test.log -x test.zip


          instead.






          share|improve this answer























          • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

            – Michael Muryn
            10 hours ago












          • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

            – Stephen Kitt
            10 hours ago











          • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

            – Michael Muryn
            10 hours ago












          • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

            – Michael Muryn
            9 hours ago











          • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

            – Michael Muryn
            9 hours ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Michael Muryn is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507346%2fzip-command-show-warnings-name-not-matched-about-symlinks-outside-of-my-worki%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          There are two things going on here.



          The first is that



          zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip


          is expanded by the shell to list everything matching * and .*, which includes .. in your case.



          The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns; so it sees ../logs/michael.muryn.name/http.2810216.bak/html/daily.html etc. and calls stat on them, which produces an error, and zip outputs “name not matched” as a result.



          The usual way to avoid this is to specify .[^.]* instead of .*, or since you’re also matching *, run



          zip -r -qv test.zip . -x test.log -x test.zip


          instead.






          share|improve this answer























          • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

            – Michael Muryn
            10 hours ago












          • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

            – Stephen Kitt
            10 hours ago











          • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

            – Michael Muryn
            10 hours ago












          • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

            – Michael Muryn
            9 hours ago











          • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

            – Michael Muryn
            9 hours ago















          1














          There are two things going on here.



          The first is that



          zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip


          is expanded by the shell to list everything matching * and .*, which includes .. in your case.



          The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns; so it sees ../logs/michael.muryn.name/http.2810216.bak/html/daily.html etc. and calls stat on them, which produces an error, and zip outputs “name not matched” as a result.



          The usual way to avoid this is to specify .[^.]* instead of .*, or since you’re also matching *, run



          zip -r -qv test.zip . -x test.log -x test.zip


          instead.






          share|improve this answer























          • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

            – Michael Muryn
            10 hours ago












          • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

            – Stephen Kitt
            10 hours ago











          • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

            – Michael Muryn
            10 hours ago












          • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

            – Michael Muryn
            9 hours ago











          • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

            – Michael Muryn
            9 hours ago













          1












          1








          1







          There are two things going on here.



          The first is that



          zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip


          is expanded by the shell to list everything matching * and .*, which includes .. in your case.



          The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns; so it sees ../logs/michael.muryn.name/http.2810216.bak/html/daily.html etc. and calls stat on them, which produces an error, and zip outputs “name not matched” as a result.



          The usual way to avoid this is to specify .[^.]* instead of .*, or since you’re also matching *, run



          zip -r -qv test.zip . -x test.log -x test.zip


          instead.






          share|improve this answer













          There are two things going on here.



          The first is that



          zip -r -qv test.zip * .* -x "..*" -x test.log -x test.zip


          is expanded by the shell to list everything matching * and .*, which includes .. in your case.



          The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns; so it sees ../logs/michael.muryn.name/http.2810216.bak/html/daily.html etc. and calls stat on them, which produces an error, and zip outputs “name not matched” as a result.



          The usual way to avoid this is to specify .[^.]* instead of .*, or since you’re also matching *, run



          zip -r -qv test.zip . -x test.log -x test.zip


          instead.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 18 hours ago









          Stephen KittStephen Kitt

          177k24402479




          177k24402479












          • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

            – Michael Muryn
            10 hours ago












          • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

            – Stephen Kitt
            10 hours ago











          • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

            – Michael Muryn
            10 hours ago












          • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

            – Michael Muryn
            9 hours ago











          • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

            – Michael Muryn
            9 hours ago

















          • What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

            – Michael Muryn
            10 hours ago












          • Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

            – Stephen Kitt
            10 hours ago











          • Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

            – Michael Muryn
            10 hours ago












          • That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

            – Michael Muryn
            9 hours ago











          • The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

            – Michael Muryn
            9 hours ago
















          What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

          – Michael Muryn
          10 hours ago






          What about my -x "..*" Won't it avoid going to parent of the root? I have been using this for years...

          – Michael Muryn
          10 hours ago














          Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

          – Stephen Kitt
          10 hours ago





          Your -x option avoids storing the files from .. etc. in the archive, but it doesn’t avoid zip checking them: that’s what I meant when I wrote “The second is that zip checks all the file names it’s given, when it’s asked to recurse, before filtering excluded patterns” (excluded patterns being the patterns given with -x).

          – Stephen Kitt
          10 hours ago













          Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

          – Michael Muryn
          10 hours ago






          Oh I missed when you said "before filtering excluded patterns"... that might explain all this... wow... Thanks

          – Michael Muryn
          10 hours ago














          That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

          – Michael Muryn
          9 hours ago





          That means my -x "..*" strategy looks into lot of unnecessary places... I would need to update this everywhere, LOL.......

          – Michael Muryn
          9 hours ago













          The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

          – Michael Muryn
          9 hours ago





          The one with only the . seems to work... I endedup long long time ago tailoring that script to put .* because for some reason it was not including hidden files (starting with .) if my memory is right... oh well might have missed something back them... just using . seem pretty simple and clean.

          – Michael Muryn
          9 hours ago










          Michael Muryn is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Michael Muryn is a new contributor. Be nice, and check out our Code of Conduct.












          Michael Muryn is a new contributor. Be nice, and check out our Code of Conduct.











          Michael Muryn is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507346%2fzip-command-show-warnings-name-not-matched-about-symlinks-outside-of-my-worki%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.