De man zip
:
-b path --temp-path path
Use the specified path for the temporary zip archive. For example:
zip -b /tmp stuff *
will put the temporary zip archive in the directory /tmp, copying over stuff.zip to the current directory when done. This option is useful when updating an existing archive and the file system containing this old archive does not have enough space to hold both old and new archives at the same time. It may also be useful when streaming in some cases to avoid the need for data descriptors. Note that using this option may require zip take additional time to copy the archive file when done to the destination file system.
Por padrão, zip
armazena o caminho completo relativo ao diretório atual. Se você quiser que seu zipfile tenha seu diretório sql
como a raiz, você precisará executar o comando no diretório /home/cyrus
.