zip backup.zip * .* && for x in folder1 folder2; do zip -ru backup.zip $x; done zip -rv backup.zip /path/to/files -x *folder-to-exclude*