Is there any method for on-fly compressing "synchronizing" and "put" files during commandline script execution?
My BAT file:
rem settings for SSH connection and export files
rem work directory
rem Copy database dump, prices and logo to outer server
%WINSCP% /console /script=script.txt /log=script.log %SSH%
rem if not %errorlevel%==0 goto err
echo Export success.
echo Export failed!!!
My SCRIPT file
# Automatically answer all prompts negatively not to stall the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Change remote directory
# Force binary mode transfer
option transfer binary
# Upload the file to current working directory
# Synchronize prices and logos
synchronize remote -permissions=666 -delete %PRICE_EXPORT% %PRICE_IMPORT%
# Call shell script for importing sql dump
# Exit WinSCP