Topic "Auto compress files"

Author Message
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
Hi.

Is it possible to set up autopacking downloaded files? For ex., before downloading, run

tar -cvj -f tempfilename.tar.bz !&

for the selected files, then do download the tar.bz, then transparently unpack it (or maybe leave as is) with a chosen (local) program.
Both remote and local commands should be configured.
I see it as an extended custom command that applies both remotely and locally.

Point is I do the thing too often manually (pack - download - unpack).
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Thanks for your post. This request has been added to tracker.
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
That's great! Wink
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
Ok, I read the comments, I tried enabling SSH compression but that just didn't change anything - the number of transferred bytes and the speed are the same. Perhaps compression should be enabled at the server.

As for scripting, I wish I could use it but as far as I understand this is only possible with the console version? I cannot run some script commands in an open WinSCP window, can I?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
ks wrote:
As for scripting, I wish I could use it but as far as I understand this is only possible with the console version? I cannot run some script commands in an open WinSCP window, can I?

No you cannot, though you can setup a custom command that executes the script for selected files. I'll try to write a guide for that.
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
Ok, thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
I have realised that you cannot do this with custom commands yet.
I have filed an improvement to allow this. Also I have written guide for accomplishing this using scripting.
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
Quote:
gzip -d archive.tar.gz
tar -xf archive.tar


You can also extract the files with unrar or unzip.
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