Synchonize Delete Switch not Working

Advertisement

Guest

Synchonize Delete Switch not Working

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 WinSCP.com 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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Synchonize Delete Switch not Working

Please read FAQ. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum