The zip command generally places the output zip file in the current directory. But, I'm wondering if there is an option that I'm overlooking in the man page that lets me specify the destination directory for the output archive file.
This created 'my_archive' in the current directory:
zip -rT my_archive dir_to_be_archived
But, I want to be able to place 'my_archive' under ./my_backups without having to 'cd' into that backups directory. Is there something like:
zip -rt my_archive dir_to_be_archived --destination ./my_backups