Help with Synchronize and XML log

Advertisement

srthomas
Joined:
Posts:
4

Help with Synchronize and XML log

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:
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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Help with Synchronize and XML log

srthomas wrote:

My script command line shows the following:
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.

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.

Reply with quote

srthomas
Joined:
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
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.

Reply with quote

Advertisement

You can post new topics in this forum