I am trying to implement a new feature in our Delpi project that will help our users to make backups online on our servers, so I’ve used Indy FTP component to build a form that will upload / download the user files or folders
But I need to offer the ability to do incremental backups. Where our users can only upload ONLY ‘new’ differences to their files and folders. So for example if I have a text file with size 5 KB, and I’ve added text to it worth additional 2 KB, then the backup will just upload those extra 2 KB and NOT the whole 7 KB
So can someone please recommend any approach, algorithm to start with?
Thanks for your time
Note: we are using Delphi 7
There is a Microsoft Delta Compression API that will allow you to diff and patch, however I have investigated this route before and found that using rSync or robocopy is a much easier route – especially as it will be quite hard to apply the patch/changes from the server side unless you build your own custom FTP server.