unix - bash zip omit files -


i'd zip folder, zip skips files. folder structure is:

main_folder > sub_folder > file2.sql               file11.txt                 file12.sql 

main_folder contains sub_folder , 2 files, subfolder contains 1 file.

when use

zip -r $path *

i receive .zip file contains except file11.txt. tried various options have not solved problem. zip makes correct structure , takes every single file except files main_folder.

could try this;

zip -r your.zip * -x file11.txt 

man zip;

-x files

--exclude files

explicitly exclude specified files..


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -