Problem using "Synchronize Remote" in a script..?

Advertisement

Guest

Problem using "Synchronize Remote" in a script..?

From the log file:

> 2012-01-29 08:05:27.656 Script: Synchronize Remote -mirror -criteria="both" "C:\Documents and Settings\user\My Documents\*.pdf"
< 2012-01-29 08:05:27.656 Script: Comparing...
. 2012-01-29 08:05:27.656 Collecting synchronization list for local directory 'C:\Documents and Settings\user\My Documents\*.pdf' and remote directory '/Docs/user', mode = 0, params = 5122
< 2012-01-29 08:05:27.656 Script: Nothing to synchronize.
> 2012-01-29 08:05:27.671 Script: close
. 2012-01-29 08:05:27.671 Disconnected from server

I copied a file into the directory to be synchronized and left its name "copy thefileame.pdf" and yet the Synchronize command isn't finding the new file? Am I missing something when trying to use Synchronization in my script?

Thanks.

Reply with quote

Advertisement

Guest

Does Synchronize from a script not work in 4.3.6?

Just trying some basics by adding files to the folder but it doesn't recognize any new files... very confused???

What does mode and params stand for and do they need to be supplied?

> 2012-01-29 12:44:11.781 Script: Synchronize Remote -mirror "C:\Documents and Settings\user\My Documents\*.pdf" "/Docs/user/"
< 2012-01-29 12:44:11.781 Script: Comparing...
. 2012-01-29 12:44:11.781 Collecting synchronization list for local directory 'C:\Documents and Settings\user\My Documents\*.pdf' and remote directory '/Docs/user/', mode = 0, params = 4098
< 2012-01-29 12:44:11.781 Script: Nothing to synchronize.
> 2012-01-29 12:44:11.796 Script: close
. 2012-01-29 12:44:11.796 Disconnected from server

Reply with quote

Guest

I may have found the problem with synchronize.. it appears that it won't synchronize files only directory's, is this true?

Reply with quote

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

Anonymous wrote:

I may have found the problem with synchronize.. it appears that it won't synchronize files only directory's, is this true?
Exactly.
Though you can achieve what you want by:
option include *.pdf
synchronize local remote

Reply with quote

Advertisement

You can post new topics in this forum