Re: [NAnt-users] Syncing two folders

2007-05-24 Thread Bob Archer
You could use the ForEach command to get a list of the files in each folder and delete any files that are in your target folder and not in your source folder. Then do your copy. Or, you could get a tool like Beyond Compare (awesome tool for the money) and use the exec task to have it sync the f

Re: [NAnt-users] Syncing two folders

2007-05-24 Thread Bevan Arps
Chris wrote: > I've got two folders on the same machine that I'd like to keep in sync. It might be a heretical comment to make, but perhaps a NAnt task is not the best solution ... I have exactly this situation, maintaining backup mirrors of my documents, mail, project work and a large digita

[NAnt-users] Syncing two folders

2007-05-24 Thread Chris Friedemann
Hey all, I've got two folders on the same machine that I'd like to keep in sync. One folder (the source) has files that are added, deleted, and edited frequently. I'd like to set up something that would sync the source folder with a destination one. Currently, I've got two options: 1. Use the