#PB merge script
###Info This script looks recursively into two folders, and merges any redundant protocol buffer (pb) files into another specified folder. It will also copy non-redundant files to the merge directory. Any two filenames must be exactly identical in order to merge; e.g. "1Hz-2015.pb" will not merge with "1Hz-2007.pb". (on *nix platforms, the .pb extension must be uniform case (both upper or both lower) in order to merge. That is, "example.pb" will not merge with "example.PB". YMMV on other platforms.)
For convenience, the auto-generated EPICSevent_pb2. is provided for un/marshalling the PB data.
###Usage
python protoBufMerger.py [--maxthreads ] [--folder1 ] [--folder2 ] [--mergefolder ] [--mergemode [w|a]]
command | what does it do? |
---|---|
maxthreads | maximum concurrent merge operations. defaults to 5 |
folder1 | (required) first input directory; eg. /srv/lts/ArchiverStore |
folder2 | (required) second input directory |
mergefolder | (required) output directory |
mergemode | (w)rite or (a)ppend to existing, defaults to w |
Author: Evan Daykin [email protected]