Location: Tallahassee, FL
Posted: 2004-03-26 21:04
Here is the command I wrote to tar and gzip a directory. It does not delete the original directory. It prompts the user for the archive name, an exclusion pattern (can be blank) and a directory or filename to compress. You must be using SCP protocol for custom shell commands as SFTP doesn't allow it. You can add this as a custom command:
Description: Compress Directory
tar -czvf "!?&Enter an Archive Name:?archive.tgz!" --exclude="!?&Exclude files matching pattern:?*.exe!" "!?&Specify directory or file to compress:?!"
Nowhere does science promise emancipation.
Location: Prague, Czechia
Thanks for your contribution. I'll add the command to the default custom commands.
You can post new topics in this forum
And it's free!