How erlanggaalfian/netbackup works
NetBackup is a web application for centrally managing network-device configuration backups. Administrators sign in, configure vendors and devices, and set schedules; cron checks schedules and invokes the Python backup engine, which connects to devices and stores results for browsing, download, and audit. The web application also provides cached connectivity monitoring, user/settings management, and optional Google Drive and Telegram integrations. Relationships among unsampled features follow the README; source excerpts and the index provide additional call/import evidence, but do not establish every runtime connection.
Main entry points: header.php Shared page layout · dashboard.php Dashboard · backup_single.py Device backup engine · index.php Page router
Components 25
Web access
- Page router
web/index.php - Shared page layout
web/includes/header.php - Navigation
web/includes/navbar.php - Shared UI behavior
web/includes/footer.php
Management UI
- Dashboard
web/dashboard.php - Device inventory
web/devices.php - Vendor commands
web/vendors.php - Backup schedules
web/schedule.php - Backup history
web/backups.php - View backup
web/view_backup.php - Activity logs
web/logs.php - System settings
web/settings.php
Backup engine
- Scheduled runner
python/run_scheduled_backup.py - Device backup engine
python/backup_single.py - Database Drive backup
python/backup_db_to_drive.py
Connectivity
- Connectivity checks and cache
config/db.php - Connectivity APIs
web/api_dashboard_connectivity.php
Data and integrations
- Authentication and security
config/db.php - Python database helpers
python/db.py - MariaDB / MySQL
- Telegram notifications
python/telegram_util.py
Other components
- Administrator / User
- Network devices
- Telegram API
- Google Drive
Connections 36
- Administrator / User → Page router: requests pages
web/index.php - Page router → Authentication and security: checks session
web/index.php - Page router → Dashboard: routes pages
web/index.php - Dashboard → Connectivity APIs: fetches status
README.md - Device inventory → Connectivity APIs: fetches status
web/devices.php - Connectivity APIs → Connectivity checks and cache: reads status
web/api_dashboard_connectivity.php - Connectivity checks and cache → Network devices: checks reachability
README.md - Dashboard → MariaDB / MySQL: reads statistics
web/dashboard.php - Device inventory → MariaDB / MySQL: manages inventory
web/devices.php - Vendor commands → MariaDB / MySQL: stores commands
README.md - Backup schedules → MariaDB / MySQL: stores schedules
README.md - Scheduled runner → Python database helpers: loads schedule data
python/run_scheduled_backup.py - Scheduled runner → Device backup engine: runs backups
python/run_scheduled_backup.py - Device backup engine → Python database helpers: uses database helpers
python/backup_single.py - Device backup engine → Network devices: connects via SSH/Telnet
README.md - Device backup engine → MariaDB / MySQL: saves results
python/backup_single.py - Python database helpers → MariaDB / MySQL: connects and logs
python/db.py - Backup history → MariaDB / MySQL: reads history
web/backups.php - View backup → MariaDB / MySQL: reads configuration
README.md - Activity logs → MariaDB / MySQL: reads audit trail
README.md - System settings → MariaDB / MySQL: stores settings
README.md - Device backup engine → Telegram notifications: notifies results
python/backup_single.py - Telegram notifications → Telegram API: sends messages
python/telegram_util.py - Database Drive backup → Python database helpers: uses database helpers
python/backup_db_to_drive.py - Database Drive backup → Google Drive: uploads database backup
README.md - Administrator / User → Dashboard: views results
README.md - Dashboard → Backup history: links history
- Page router → Shared page layout: loads for 404
web/index.php - Shared page layout → Navigation: includes navigation
web/includes/header.php - Backup history → Shared page layout: uses shared layout
web/backups.php - Activity logs → Shared page layout: uses shared layout
web/logs.php - Backup schedules → Shared page layout: uses shared layout
web/schedule.php - Vendor commands → Shared page layout: uses shared layout
web/vendors.php - Dashboard → Shared page layout: uses shared layout
web/dashboard.php - Device inventory → Shared page layout: uses shared layout
web/devices.php - Shared page layout → Shared UI behavior: paired page UI