A Python automation demo that monitors local system metrics, records threshold alerts, and creates compressed backup archives from selected files.
Python 3.x · psutil · tarfile · MIT License
- System monitoring: Reads CPU, memory, and disk usage with
psutil. - Threshold alerts: Reports warning conditions when configured resource limits are exceeded.
- Backup automation: Collects selected files and creates compressed
.tar.gzarchives. - Workflow orchestration: Runs monitoring and backup tasks from a single entry point.
system_monitor.py— local CPU, memory, and disk monitoring.backup_engine.py— backup archive creation.main.py— workflow orchestration.requirements.txt— Python dependencies.
git clone https://github.com/afaqkhan-io/devops-sync-agent.git
cd devops-sync-agent
python -m venv .venv.venv\Scripts\activatesource .venv/bin/activateInstall dependencies:
pip install -r requirements.txtpython main.pyNote: This is a local automation/learning project. Backup paths and system thresholds should be reviewed before using it on important data.
Distributed under the MIT License. See LICENSE for details.