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 digital photo collection
across my home network. Total size is in excess of 40GB, so deleting and
recopying isn't a viable solution.
 
My approach?
 
Using RoboCopy - a robust copy tool that freely available from Microsoft
as a part of the Windows Server Resource Kit tools:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4
ae7-96ee-b18c4790cffd&displaylang=en
 
If you have other tasks that NAnt is automating, then you could invoke
Robocopy with an exec task ...
 
Hope this helps,
Bevan.

Bevan Arps  |  Senior Analyst/Programmer  |  Knowledge Services Group  |
Reserve Bank of New Zealand  |  ( +64 (0)4 471 3689  |  *
[EMAIL PROTECTED]  |  : www.rbnz.govt.nz
<http://www.rbnz.govt.nz/> 

 
 


******************************************************************************
"This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand."
******************************************************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to