Topic "Synchonize Delete Switch not Working"

Author Message

Hi there,
In my script I use the following command:

synchronize remote -delete c:\Hold /backup

C:\Hold only contains files for the previous 7 days. When I SFTP this to my remote /backup folder I want the deletions in C:\Hold to be reflected in the remote folder also.

Without the -delete switch the copy works but when I use the delete switch the transfer and delete is unsuccessful. I used to call mys cript so that I could see the log and the error is:
"Too many parameters for command 'synchronize'."

Is my command structured correctly? I tried putting the switch at the end of the line but get the same results.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27105
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
Martin Prikryl

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