Keep remote-Folder up to date

Advertisement

HankeU
Joined:
Posts:
1
Location:
Germany

Keep remote-Folder up to date

Hello,
I 'm new here and I try to create a bridge from my NAS to my webhost, because of problems with an old device with FTPES.

WinSCP is working well at this point and the files are directly updated, when they are changed, but:
The connection to the server has to be on all the time.

Is it possible to create a script, that starts and stops the server connection, so it has not to on all the time, just for the transmission?

I'm not used in writing scripts, so I could need some help.

Best regard Juergen

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Keep remote-Folder up to date

WinSCP does not have such function.
But it's not that difficult to write such functionality using e.g. PowerShell using FileSystemWatcher, which would open new connection and do the upload (using WinSCP .NET assembly) on a file change.
Also hinted here:
https://winscp.net/eng/docs/scriptcommand_keepuptodate#net

But it's advanced enough for someone, who does not do coding regularly.

Reply with quote

Advertisement

You can post new topics in this forum