May 16th, 2012, 06:30 PM
Join Date: Apr 2012
Location: spaceBAR Central
Try it like this:
zip -ur foo.zip src
Clip from 'zip' man page:
-r Travel the directory structure recursively; for example:
zip -r foo foo
In this case, all the files and directories in foo are saved in
a zip archive named foo.zip, including files with names starting
with ".", since the recursion does not use the shell's file-name
substitution mechanism. If you wish to include only a specific
subset of the files in directory foo and its subdirectories, use
the -i option to specify the pattern of files to be included.
You should not use -r with the name ".*", since that matches
".." which will attempt to zip up the parent directory (proba-
bly not what was intended).
-R Travel the directory structure recursively starting at the cur-
rent directory; for example:
zip -R foo '*.c'
In this case, all the files matching *.c in the tree starting at
the current directory are stored into a zip archive named
foo.zip. Note for PKZIP users: the equivalent command is
pkzip -rP foo *.c