MD5/SHA-based synchronization
Hi!
I'm trying to optimize a WinSCP script that executes a command to upload files to a given FTP site.
Since the whole script is executed as part as a continuous integration build, it might happen that the source code could be 'd from scratch, losing file system timestamps. That is, when happens this, the entire site is uploaded to the whole FTP site.
I was wondering if I could implement some custom action to compare the MD5/SHA hash of target and source file, and upload it if the content has changed (the size isn't reliable... it might happen that a code file may weight the same bytes but it may also contain other code...).
Or, is there any built-in feature I could use out-of-the-box?
Thank you in advance[/code]
I'm trying to optimize a WinSCP script that executes a
synchronize
Since the whole script is executed as part as a continuous integration build, it might happen that the source code could be
git clone
I was wondering if I could implement some custom action to compare the MD5/SHA hash of target and source file, and upload it if the content has changed (the size isn't reliable... it might happen that a code file may weight the same bytes but it may also contain other code...).
Or, is there any built-in feature I could use out-of-the-box?
Thank you in advance[/code]