How to compress all subdirectories separately and download

Advertisement

newuser333
Guest

How to compress all subdirectories separately and download

I would like to know how I can compress and download all subdirectories (subdirectories of mydir) separately (each subdir to its own compressed file). Here is an example, how I do it when downloading all subdirectories to a single compressed file:
open mysession
cd mypath
call tar -czf mydir.tar.gz mydir
lpwd
get -delete mydir.tar.gz mytargetpath
exit

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum