PDA

View Full Version : folder compare and further deployment using folder-report


sumeetg
06-Aug-2010, 05:37 AM
Hello,

I had done folder compare using script.

log normal c:\diff_binary.log
load New
load "M:\sumeetg_wk29\MMTC_MMSTB10.1_src\devkit\epoc32" "M:\sumeetg_wk27\MMTC_MMSTB10.1_src\devkit\epoc32"
expand all
compare binary
criteria binary
folder-report layout:summary options:display-mismatches,column-none output-to:C:\epoc32_list.txt
option confirm:yes-to-all
sync mirror:left->right


This script does following:
1. generate diff report.
2. sync right with left.

Now, i want to deploy this process for about 10 people. The whole process takes about 4 hours to compare and sync. I want that BC should just takes the output file generated from above script (epoc32_list.txt) and performs sync on everybody else's machines. Is it possible? (It will avoid unnecessary folder compare on all machines and we can directly move over to sync using the report.)
Of course, i can make a perl script to do that for me, but wanted to know if that was possible directly through BC.

Aaron
06-Aug-2010, 12:56 PM
Hello,

BC3 can do this if you use the select command, and then the copyto command, and have access to CopyTo the 10 destination computers.
Also, your compare and criteria commands may be making the compare take much longer than it needs to. Which compare type is your session New set to run? You can simply load "New", and set it to run a Binary compare in the Session menu -> Session Settings -> Comparison tab. Then on Load it will run this compare, and you do not need to "compare binary" or "criteria binary".

Here is a rough example. Please test with already backed up data or test folders, since any deletes or copies are permanent.

option confirm:yes-to-all
log normal c:\diff_binary.log
load New
load "M:\sumeetg_wk29\MMTC_MMSTB10.1_src\devkit\epoc32" "M:\sumeetg_wk27\MMTC_MMSTB10.1_src\devkit\epoc32"
expand all
folder-report layout:summary options:display-mismatches,column-none output-to:C:\epoc32_list.txt
select left.newer left.diff left.orphan
copyto \\computer1\folderDest\
copyto \\computer2\folderDest\
sync mirror:left->right