/console /script automation for enabling compression

Advertisement

jduenas99
Joined:
Posts:
3
Location:
california

/console /script automation for enabling compression

Team, looking for correct syntax/option to enable SSH "compression" via command line/script.

currently my script file contains.

option batch off
option confirm off
open sftp:.....
option transfer binary
synchronize local ...........

Is it as simple as option compression on?

ty
jd

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: /console /script automation for enabling compression

I have removed your post that contained my answer only. If you intended to actually post something, please try again.

Reply with quote

jduenas99
Joined:
Posts:
3
Location:
california

Looking to gain performance. Syncronize taking 2.5 hours

open sftp://.../ -rawsettings Compression=1 did not help like i was hoping.

Looking into another option that would like to try. Not clear/sure where to add

Raw Transfer Settings

Thought it would go at end of Synchronize command?

In scripting, use -rawtransfersettings

synchronize local..... -rawtranfersettings NewerOnly=1

I get this

Script: Too many parameters for command 'synchronize'.

txs again in Advance

Reply with quote

martin
Site Admin
martin avatar

Re: Looking to gain performance. Syncronize taking 2.5 hours

The synchronize command transfers newer files only on its own. That's the point of the command.

What are you trying to achieve?

Reply with quote

Advertisement

jduenas99
Joined:
Posts:
3
Location:
california

Re: Looking to gain performance. Syncronize taking 2.5 hours

martin wrote:

The synchronize command transfers newer files only on its own. That's the point of the command.

What are you trying to achieve?

As a new team member, i have been tasked to see we can speed up our nightly Sync process from
our Hosting web server to our production We server. 2.5 - 3 hours to sync up folders. Was hoping Compression would help with overall process. Thinking "only" new files after certain date as well from
source as to not need to compare each folder etc. Looking at packet size limits see if anything there i can tweak. Trying to stay with WinSCP instead of replacing with other options. Thank you
jose

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
34,300
Location:
Prague, Czechia

Re: Looking to gain performance. Syncronize taking 2.5 hours

You will have to first find our what causes the synchronization to take so long.
Does it take WinSCP long to find what files has changed?
Or does it take long to transfer the changed files? Does it take long because of a bandwidth? Or because of a network latency? Etc, etc.

Only once you understand that, it makes sense to start with any optimization.

Reply with quote

Advertisement

You can post new topics in this forum