Topic "Scripting and synchronize"

Author Message
[View user's profile]

Joined: 2007-11-16
Posts: 1
I am trying to synchronize a local folder (primary) with a remote folder (backup) which is a subfolder of the remote root. I need this to be run from a scheduled script. I tried doing this:

winscp404 myprofile /command "option synchdelete on" "synchronize remote U:\test1 /test1"

It deleted all of the files in the other folders on the remote server (not subfolders of test1). I had winscp write a log to verify that's what it was doing.

Then, I tried to turn off the deleting, with:

winscp404 myprofile /command "option synchdelete off" "synchronize remote U:\test1 /test1"

It STILL deleted the other files. In the log it has the statement:

Collecting synchronization list for local directory 'U:\test1' and remote directory '/test1', mode = 0, params = 3

and then later it synchronizes the current directories instead:

Synchronizing local directory 'U:\' with remote directory '/', params = 3

The server I am using is freeFTPd for SFTP. The version of winscp is 405.

Can someone help please?

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License