Auto compress files

Advertisement

ks
Donor
ks avatar
Joined:
Posts:
77
Location:
Moscow

Auto compress files

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).

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Auto compress files

Thanks for your post. This request has been added to tracker.
_________________
Martin Prikryl

Reply with quote

ks
Donor
ks avatar
Joined:
Posts:
77
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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
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

Reply with quote

ks
Donor
ks avatar
Joined:
Posts:
77
Location:
Moscow

gzip -d archive.tar.gz
tar -xf archive.tar

You can also extract the files with unrar or unzip.

Reply with quote

Advertisement

You can post new topics in this forum