Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Synchonize Delete Switch not Working

Please read FAQ. If that does not help, come back.
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.