I have been using this technique to backup my stuff since years and it works perfectly. It basically, copies everything new or changed from the source location (c:\data) to the destination (f:\backup\data & d:\backup\data). The only problem with this approach is that it doesn’t take care of the files and folders that I delete in the source location.
All you MS.DOS pros out there, help me out with my batch file to add this new functionality. I basically want it to delete everything from the destination that doesn’t exists any longer in the source. I could place a line that would do a delete all in the backup\data folder but that would be a lot of unnecessary activity I think.
Asif, try using a product called Windiff. This product can be cusomized with the command line interface, it does a compare on two directories and you can copy/move/delete files based on the comparison.
I have used a little utility called Idem in the past to do just that. It has a switch "mirror" which appends new/updated files and deletes destination when source gets deleted.
I am trying to keep it simple and avoid any external apps. For now, I have decided to create another batch file (DeleteBackup.bat) that I will schedule to run once a week only unless anyone has any other ideas.