Copy/Compare Folder command

(imported topic written by simonb91)

Morning all - just wondering if anyone could help me out on this problem? I’m pretty certain that I’ve seen a Bigfix command somewhere in the Bigfix PDF documentation but I’ve looked everywhere but no luck.

I’m looking for a way in Bigfix to automatically compare the contents of a source folder and duplicate any changes/deletions made to a destination folder on a different server. It’s to copy some documents from a file server to an extranet server on a DMZ but Microsoft’s DFS isn’t a solution I’m looking for.

Any suggestions?

Many thanks,

Simon

(imported comment written by Rolf.Wilhelm91)

Hi Simon,

Why not use the Microsoft robocopy tool with the option “/mir” ?

Inject robocopy.exe into the BigFix Cache, download it inside of the action and then execute it with a command line.

Warning: If you try to use such tools from inside an action, you need to authenticate against the file server or have “null session shares” enabled on the file server.

Regards,

Rolf.

(imported comment written by JasonO91)

Robocopy will do what you want, and you might want to look at rsync as well. I’ve used both in the past, and both can be scheduled, automated, etc. Another quick way to check a folder for changes would be to perform an md5sum on both of the directories. If the md5 checksum is the same, then no modifications have been made. I’d suggest that this would be a faster and better way to check for differences from a fixlet that gets evaluated at every check.

If this is a task that’s being scheduled to run at specific times, then robocopy or rsync is the way to go.

Jason