backup_log_map: Creating a straightforward backup process flow, highlighting significant events and errors across all shard logs from OM servers.
Installation:
- To install python on macOS
$brew install python3
- Clone the repository:
MAC: $gh repo clone Vodyanoy17/backup_grep
WINDOWS: >git clone https://github.com/Vodyanoy17/backup_grep.git .
- create a virtual environment
MAC: $ python3 -m venv venv1 $ source venv1/bin/activate
WINDOWS: > python -m venv venv1 > venv1\Scripts\activate.bat
- install the packages according to the configuration file
MAC: $ python3 -m pip install --upgrade pip $ pip install -r backup_grep/requirements.txt
Solution for Linux, Windows (WSL/Ubuntu) and MacOS: Please installWINDOWS: > python.exe -m pip install --upgrade pip > pip install -r requirements.txt
python-tk
manually from Homebrew$ brew install python-tk
- Example of execution grep ustility
MAC: venv1/bin/python backup_grep/grep/bckgrepgui.py
WINDOWS >python grep\bckgrepgui.py
- Example of execution grep backup_log_map from cli
if you want to run it over several OM's logs you need to manually combine all files by
cat file1 file2 | sort > sorted.log
The GUI version with a more efficient method of sorting.
venv1/bin/python backup_grep/log_map/backup_log_map.py [mms0 logs directory]