Skip to content

daykin/protoMerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#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]

About

Merges protobuffers for EPICS archiver appliance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages