Posted: 2008-05-08 14:37
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
Location: Prague, Czechia
You can try to enable session-level compression.
You can post new topics in this forum
And it's free!