Delete files obsolete with keepuptodate

Advertisement

Ivo
Guest

Delete files obsolete with keepuptodate

For synchronize client and server I use /keepuptodate with a script.
Perfect but when I delete file from client WinSCP don't delete file from server.
Anyone have a idea?
Tanks

Reply with quote

Advertisement

Ghosti1337
Guest

Hi,

I use a script with keepuptodate for continuous monitoring on FTP remote folder. Uploading works as intended. However when I delete a file on the local folder, it should delete it on the remote folder as well. I use -delete in my script, but it doesn't work. Whats wrong with it? This is my script:
option batch on
option confirm off
open ftpes://xxxxxxxxxxxxxxx:xxxxxxxxxxxx@xxxxxxxxxx/
keepuptodate -delete X:\LOCALFOLDER /REMOTEFOLDER

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
42,276
Location:
Prague, Czechia

@Ghosti1337: I've just test it and it works for me.

Please attach a full session log file showing the problem (using the latest version of WinSCP).
Make sure you specify name of the file you have deleted and the exact time you did so.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum