2006-06-15

windows下的同步工具robocopy

今天在浏览精品论坛的时候有个关于windows下同步文件夹的帖子引起了我的兴趣。我只知道在unix/linux下可以用rsync,还不知道windows下有个命令行工具robocopy也具有文件备份同步的功能。这个程序是Windows Server 2003 Resource Kit Tools中的一部分。网上说Windows XP Resource Kit Tools中也包含,可是我找来Win XP的光盘完整安装Windows Support Tools后却没有发现robocopy。于是从网上下载并安装了Windows Server 2003 Resource Kit Tools(12M)。这个小工具有很多选项可用,微软提供了一份36页的Word帮助文档。
Robocopy is a 32-bit command-line tool used for file replication. This tool helps maintain identical copies of a directory structure on a single computer or in separate network locations. Robocopy is included in the Microsoft® Windows® Resource Kit.

1 条评论:

  1. 小心使用有些选项:
    Simple Usage :: ROBOCOPY source destination /MIR
    Use /PURGE and /MIR very carefully. If you inadvertently specify /PURGE or /MIR with an existing destination directory, Robocopy can quickly delete a large amount of data from the destination.

    最好destination是一个新的目录或者存在的空目录。

    回复删除