0

I'm looking for a file copy utility that allows me to control what files and directories are to be copied specifying rules like:

IF source-file-date IS GREATER THAN target-file-date THEN overwrite
IF source-file-size IS EQUAL TO target-file-size THEN skip

The FTP client I use (CuteFTP Pro) has that feature (you can define a set of rules that controls the file uploading process).

But as far as file copy utilities, I havent found one that let me do this. So far, I've tried Robocopy and RichCopy but none of them let me fine-control the copy operation.

In general terms, I need to synchronize two directory trees, i.e. copy the new or modified files from the source tree to the target tree and delete the files in the target tree that dont exist in the source tree.

However, I need to fine control the operation like this:

  • If a directory in the target tree is not present in the source tree, then leave that directory untouched (dont even enter in that directory)
  • if a file in the source tree has the same size as the file in the target tree then dont copy that file, no matter if it's older or newer.

Plus I'd like to control the logging. Robocopy and RichCopy let you control which operations are logged and which ones are not, but they have the same limitations as with he copy operation, i.e. they dont let you fine-control the logging opration either, they just provide some basic functionality.

Do you know if there is such a copy utility that let me do this in Windows??

GetFree
  • 1,460
  • 7
  • 23
  • 37

8 Answers8

2

rsync kind of does that, and I have used it successfully on windows as well.

Vincent De Baere
  • 1,783
  • 9
  • 9
1

Have you considered writing your own using VBScript? It sounds hard but it isn't really, and it would give you as fine control as you want.

JR

John Rennie
  • 7,756
  • 1
  • 22
  • 34
0

have you looked at all the options available with robocopy? there are options available for dealing with timestamps and file sizes, as well as empty directories...

link below has a pretty comprehensive list of parameters available for robocopy (these work with windows 7 as well).

http://ss64.com/nt/robocopy.html

0

I think that smartsync (smartsync.com) gives you that kind of control. You might also try allwaysync (allwaysync.com) the final product I have used is syncback SE but I don't think it gives you exactly what you are looking for.

andymoe
  • 67
  • 1
  • 8
0

Might wanna check out Cobian Backup [http://www.educ.umu.se/~cobian/cobianbackup.htm][1] It's OpenSource and Free and might meet all your needs.

As for Rysnc, [http://www.itefix.no/i2/node/10650][1] I've used cwRsync before with much success via SSH.

skitzot33
  • 554
  • 2
  • 2
0

Take a look and try unison: Download for Windows

0

TerraCopy

http://www.codesector.com/teracopy.php

Alan
  • 836
  • 1
  • 9
  • 18
0

Microsoft has a utility called SyncToy that allows you to choose various options, such as sync, echo, etc.

http://www.microsoft.com/downloads/details.aspx?familyid=E0FC1154-C975-4814-9649-CCE41AF06EB7&displaylang=en

I use it to backup all my photos from my laptop to my media PC.

rob
  • 1,253
  • 1
  • 10
  • 17