Synchronize WinSCP unresponsible and dead

Advertisement

den
Joined:
Posts:
8

Synchronize WinSCP unresponsible and dead

The app is not responsive. I never had such experience when you click a button, and it's freezes:


Anyone knows about async operations in programming?

I have 500k files on ftp to sync and it's not working as expected.
Last edited by den on 2024-11-16 03:24; edited 6 times in total

OlzHS4VxWY.png

Reply with quote

Advertisement

den
Joined:
Posts:
8

Had to write few lines of code just to do that job in more efficient way. WinSCP is a failure.
Spent few minutes to write this and it is more stable than that WinSCP which is constantly crashing I cannot do my tasks...

Last edited by den on 2024-11-16 03:24; edited 1 time in total

rWEIqQ4eCF.png

Reply with quote

NottaSmartMan
Joined:
Posts:
38

Well.... at least you're not dramatic.

Given that you didn't provide any logs to help troubleshoot your issue, I can only speculate on your situation based on my own personal experience. I have noticed that when I use powershell to sync large folders, it does take a while before any copying starts. The hang/delay/etc seems to be because it parses the local and remote file structures first to determine everything needs to be copied and then does the copy.

Now, there may be better ways to to implement this, but you must also remember that with change comes risk. Changing the process without warning could result in a change in a log structure which could then have a ripple effect in breaking a multitude of 3rd party/custom apps that use WinSCP, expect a certain outcome, and log format.

I'm glad you were able to just write your own code to accomplish the same task. While it doesn't address/fix any of your initial complaints, I hope it works for you. I did notice that in the code you posted, the last line says "Disconnecting", but doesn't actually disconnect the session cleanly. You may want to add 'client.Disconnect();' to your code or else some jerk may hop on the forums and start making blanket statements and criticizing your work unfairly.

If you're interested in being helpful, I'd love to see apples-to-apples numbers on sync times. Write a script using WinSCP and FluentFTP and compare run times; obviously make sure you have the same flags set/ensure the same number of files are copies/share logs/share code/etc

Reply with quote

Guest

I use WinSCP synchronize just fine with pwsh.

However, you may have a valid point or you may not. I don't use it on 500k files individually. That's a lot of files like that lol. I'd rather put them all into containers automatically, and filter out trash, and then back that up as its a whole lot faster with well working software such as Restic.

It may be that it was never really worked on for very high file counts like that. I don't know. Never looked into its story. I do know its slow enough with my use on 1-3k files with full hash check. That's the max time I will allow. But, I've not seen a problem here.

Reply with quote

Advertisement

You can post new topics in this forum