Topic "Command line synchronization - logging output"

Author Message

I am running on the command line to manually synchronize a directory over SFTP. This works great.

What I want to do however, is schedule a job to run this at regular intervals and log the output to a text file.

I created a batch file to do this that contains: /console /script=sync.txt >> sync.log

Problem is that because of the way's synchronize outputs its file transfers, updating its progress with control characters, only one of the files transferred is ever written to the sync.log.


Starting the session...
Reading remote directory...
Session started.
Active session: [1] user@host
C:\Documents and Settings\localdir
Local 'dir' => Remote 'dir'
...\Test\test1.txt | 0 kB | 0.0 kB/s | ascii | 100%

Does anyone know of a way to record all of the output?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
I'll try to fix this in the next version.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License