Topic "Help with Synchronize and XML log"

Author Message
srthomas
[View user's profile]

Joined: 2010-04-15
Posts: 4
Hi,

I need some help on this as I just can't get it. Some background, remote server via FTP, has directories like:
data/Cardiff/2010-05-06/
data/Cardiff/2010-04-02/
data/Cardiff/2009-05-06/
data/London/2009-05-06/
data/Edinburgh/2010-02-06/

The list of cities is dynamic so I don't know in advance what they will be
etc.

I need to sync to local machine only the current month and previous month folders, of the above only:
data/Cardiff/2010-05-06/
data/Cardiff/2010-04-02/

My script command line shows the following:
Code:
start /min "VideoSync Tool" "%WINSCP_HOME%winscp.com" /ini="%WINSCP_HOME%winscp.ini" /log="%LOG%" /command "open RPSSync" "option batch continue" "option confirm off" "option include */;%YEAR%-%MONTH_NOW%-*;" "synchronize local %LOCAL_DIR%" "exit"


I can't get the include to work ... any ideas?

Also, I'm running WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3) but when changing the log file to an xsml extension it doesn't write xml only standard log info.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
srthomas wrote:
My script command line shows the following:
Code:
start /min "VideoSync Tool" "%WINSCP_HOME%winscp.com" /ini="%WINSCP_HOME%winscp.ini" /log="%LOG%" /command "open RPSSync" "option batch continue" "option confirm off" "option include */;%YEAR%-%MONTH_NOW%-*;" "synchronize local %LOCAL_DIR%" "exit"


I can't get the include to work ... any ideas?

You cannot do this with include mask. I think that only solution is to generate script with list of directories to synchronize.

Quote:
Also, I'm running WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3) but when changing the log file to an xsml extension it doesn't write xml only standard log info.

xsml? it is typo? or have you indeed tried xsml, it should be xml.
_________________
Martin Prikryl
srthomas
[View user's profile]

Joined: 2010-04-15
Posts: 4
Hi,

Sorry that was a typo, I have given the argument to the log parameter as an xml file. It doesn't produce a xml file - only a text "normal" file.

Can you give me some ideas on this as I'm going to need to parse the xml file to get the list of directories to synchronise?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I do not see anything wrong about your command.

Anyway, for a very basic test, can you execute following command in the Windows shell?
winscp.com /ini="%WINSCP_HOME%winscp.ini" /log=mylog.xml /command "open RPSSync"
Check if mylog.xml is xml or plain text.
_________________
Martin Prikryl
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