Discussion Locked

Utl needed compare files between servers

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need a utility to compare files in folders between 2 servers.

I use one server as a fail over for another one. Just the data files are copied from server 1 to server 2. It is about 400g of data total. I have over the past few months more files on file server 2 then 1. I need to be able to run a utility that will compare the files between the 2 servers and delete the ones on file server 2 that are not on file server 1. These files are in multiple directories

3 replies

by gigelul

Hi,
In resource kit exist "robocopy.exe" which offer you these requirements.
"Robocopy is flexible. You can choose to copy a single directory, or walk a directory tree. You can specify multiple filenames and wildcards to select which source files are candidates for copying. You can exclude source files from being copied by name, path, wildcard, or file attributes. You can exclude directories from being walked by name or path. You can chose to copy only files with the Archive attribute set, and you can choose whether or not to turn off the Archive bit in the source file after copying. The program classifies files by whether or not they exist in the source directory, the destination directory, or both. In the latter case the program further classifies files by comparing time stamps and file sizes between the source file and the corresponding destination file. You have complete control over which of these file classes will be copied. You can also choose to move files rather than copy them. And you can also choose to purge (delete) destination files and directories that no longer exist in the source, and thereby maintain the destination as an exact replica of the source."

This discussion is closed to new replies.