I run this on my CentOs box:
zip -r backup.zip /home/user/domains/example.com/public_html/
The command works ok as it should, but I have an annoying problem.
What I expect is when I open the zip to have one folder in it: public_html
Instead i have /home/user/domains/example.com/public_html/
. Does anyone know how to prevent this?