5329799a5a0ed070e61c7b03c3bc4bce9e049ff9
The VM standby's management-platform was found 2+ months stale during failover investigation (last deploy: June 10). Root cause: the old pull-platform-backup.sh + deploy-platform.sh pair on the VM pulled/ redeployed platform-backup-*.tar.gz tarballs of /root/management-platform, but tarball generation was disabled 2026-08-14 when the source of truth moved to git-tracked /root/CloudOps — nothing replaced it, so the VM kept re-deploying its last cached snapshot every hour indefinitely. New script runs hourly from the main server (cron) instead of pulling from the VM — pushes /root/CloudOps/platform directly via rsync, plus the live /root/management-platform/config.py (gitignored, holds real secrets/DB creds — copied byte-for-byte since it already contains the RUNNING_ON_MAIN_SERVER auto-detect logic that makes it work correctly unmodified on both servers). Only restarts the systemd service when rsync or config actually changed. Old pull/deploy cron entries commented out on the VM (superseded, not deleted, for history). Verified end-to-end: ran it live, standby now serves current code (status- dot markers present in synced templates/app.py), service restarted clean, config auto-detect correctly logs "running on VM / backup host" and takes the SSH-fallback code path as designed.
CloudOps - Infrastructure Management & Disaster Recovery Platform
Overview
This repository contains the complete infrastructure code for Navitrends' backup and disaster recovery platform.
Components
- Platform: Flask web application for backup/restore management
- Scripts: Backup, restore, and sync scripts
- Docker Compose: Configuration for all 5 applications
Applications Managed
- Nextcloud (File sharing)
- Odoo (ERP/CRM)
- Frappe/ERPNext
- Mautic (Marketing automation)
- n8n (Workflow automation)
Servers
- Main Server: 173.249.20.244
- Backup VM: 192.168.152.128
Description
Languages
PHP
66.6%
JavaScript
15.8%
Twig
8.6%
CSS
4.4%
Less
2.1%
Other
2.4%