You will need to include the full path to the directory that you want to exclude. If it is inside of /home/test
:
zip -r myzip.zip /home/test -x /home/test/share/\*
If it's elsewhere:
zip -r myzip.zip /home/test -x /home/test/path/to/share/\*
You will need to include the full path to the directory that you want to exclude. If it is inside of /home/test
:
zip -r myzip.zip /home/test -x /home/test/share/\*
If it's elsewhere:
zip -r myzip.zip /home/test -x /home/test/path/to/share/\*