Console mode never terminates
Martin,
I am calling Winscp from a Windows batch file. I am using 5.2.5 BETA
The batch file is run as a scheduled task every 24 hours.
The WinSCP command file synchronizes the proper directories but disconnects before completing the last directory sync.
If I look in taskmgr after a few days there are N number of WinSCP.com processes running where N is the number of days since I last checked it.
I believe this is happening because I am losing connection during the backup and the process just keeps retrying.
For each run there are MASSIVE log files of 33GB +/- and they are not easily debugged because of the sheer size.
The disconnect seems to happen only when running the largest sync in the batch job.
How can I get the process to stop or restart.
Below are the Simple Batch file and WinSCP Script I am using
Thanks
Gene
***** Batch File *****
CLS
ECHO OFF
REM **********************************************
REM ******* Automated Backup Batch File ********
REM **********************************************
REM **********************************************
REM **********************************************
"C:\Program Files\DEBUG_WINSCP\WinSCP.com" /script="C:\Program Files\Pace-Bkup\pace-bkup.txt"
***** WinSCP Script *****
#**********************************************
#******* Automated WinSCP Backup ********
#**********************************************
#**********************************************
open pace-bkup
option confirm off
option reconnecttime 10
option batch continue
option echo off
synchronize remote Y:\ /pace-bkup/$(Backup_Executive) -criteria=either -transfer=automatic
synchronize remote Q:\ /pace-bkup/$(Backup_Quickbooks) -criteria=either -transfer=automatic
synchronize remote Z:\ /pace-bkup/$(Backup_WIP)/ -criteria=either -transfer=automatic
close
exit
I am calling Winscp from a Windows batch file. I am using 5.2.5 BETA
The batch file is run as a scheduled task every 24 hours.
The WinSCP command file synchronizes the proper directories but disconnects before completing the last directory sync.
If I look in taskmgr after a few days there are N number of WinSCP.com processes running where N is the number of days since I last checked it.
I believe this is happening because I am losing connection during the backup and the process just keeps retrying.
For each run there are MASSIVE log files of 33GB +/- and they are not easily debugged because of the sheer size.
The disconnect seems to happen only when running the largest sync in the batch job.
How can I get the process to stop or restart.
Below are the Simple Batch file and WinSCP Script I am using
Thanks
Gene
***** Batch File *****
CLS
ECHO OFF
REM **********************************************
REM ******* Automated Backup Batch File ********
REM **********************************************
REM **********************************************
REM **********************************************
"C:\Program Files\DEBUG_WINSCP\WinSCP.com" /script="C:\Program Files\Pace-Bkup\pace-bkup.txt"
***** WinSCP Script *****
#**********************************************
#******* Automated WinSCP Backup ********
#**********************************************
#**********************************************
open pace-bkup
option confirm off
option reconnecttime 10
option batch continue
option echo off
synchronize remote Y:\ /pace-bkup/$(Backup_Executive) -criteria=either -transfer=automatic
synchronize remote Q:\ /pace-bkup/$(Backup_Quickbooks) -criteria=either -transfer=automatic
synchronize remote Z:\ /pace-bkup/$(Backup_WIP)/ -criteria=either -transfer=automatic
close
exit