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

Author Message
GeneSys

Guest


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:

Code:
open mysession@mydomain.com
synchronize -delete -criteria=either -transfer=binary local "C:\www.mydomain.com" "/websites/www.mydomain.com"
close


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

Code:
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")

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


but the XML log only shows:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="mysession@mydomain.com" start="2013-02-26T14:36:13.883Z">
  <download>
    <filename value="/websites/www.mydomain.com/TEST.2Ren" />
    <destination value="C:\www.mydomain.com\TEST.2Ren" />
    <result success="true" />
  </download>
</session>


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 (http://winscp.net/eng/docs/logging_xml#rm) 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
The XML log records operations on remote files only.
What applies to <rm> tag too:
http://winscp.net/eng/docs/logging_xml#rm
Quote:
Deleting of one (or more) remote file or directory.
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License