Topic "No delete entry in XML log - bug?"

Author Message


Hey there,

I'm using WinSCP 5.1.4 on Windows Server 2003 SBS to synchronize my website to my server in order to have a backup.
As it might be that multiple people work on the webspace I'd like to preserve a log of what has changed.

I'm using WinSCP with scripting, the script is as follows:

synchronize -delete -criteria=either -transfer=binary local "C:\" "/websites/"

and I'll call it by use of a batch (.bat) file:

winscp.exe /log=mirror.log /xmllog=mirror.xml /script=mirror-website.script.txt

Everything works as expected (files are synchronized), but in the mirror.xml no delete command is recorded.

So I renamed a file on the server, this is the essential log from mirror.log (I renamed "TEST.rename" to "TEST.2Ren")

. 2013-02-26 15:36:18.774 Remote file '/websites/' [2013-02-26T14:19:43.000Z] [28] is new
< 2013-02-26 15:36:52.431 Script: 'C:\\TEST.rename' deleted

but the XML log only shows:

<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="" name="" start="2013-02-26T14:36:13.883Z">
    <filename value="/websites/" />
    <destination value="C:\\TEST.2Ren" />
    <result success="true" />

but I would expect that there will also be a `rm` tag in the XML log, stating that the file `TEST.rename` was deleted.

In the documentation ( it states that the rm tag is associated to `synchronize local|both -delete`.
Am I doing something wrong or is this a bug?

Thank you very much for your support.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
The XML log records operations on remote files only.
What applies to <rm> tag too:
Deleting of one (or more) remote file or directory.

You can post new topics in this forum


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