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

Author Message
Guest




From the log file:

Quote:
> 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.
Advertisements
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
Guest




I may have found the problem with synchronize.. it appears that it won't synchronize files only directory's, is this true?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
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:
Code:
option include *.pdf
synchronize local remote
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