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

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.
den

Ok, Thanks for your honest reply.
NottaSmartMan

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
den

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

den

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.