Topic "Create Multiple tar or zip's"

Author Message
Ezdub
[View user's profile]

Joined: 2008-11-01
Posts: 2
Location: UK
Is there a custom command that will create multiple tar's or zip's.

I have a lot of folders that contain either images or files.

What I would like is to have a custom command to take the folder name and make a tar or zip of the folder and it's contents.

So if I selected say 10 folders and their contents it would make a seperate tar or zip of each folder, instead of just 1 archive.

Hope I have explained myself on that one.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Following will do:

tar -cz -f "!.tar" "!"

Do not forget to check Apply to directories.
_________________
Martin Prikryl
Ezdub
[View user's profile]

Joined: 2008-11-01
Posts: 2
Location: UK
prikryl wrote:
Following will do:

tar -cz -f "!.tar" "!"

Do not forget to check Apply to directories.


Perfect that is just what I needed.

Many thanks.
djrino
[View user's profile]

Joined: 2012-01-14
Posts: 2
Hi

and for zip format?

i want to zip all the file in customer account but shure liki zipname.zip and into it all the publichtml files

tnx
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License