12c90f3a4e
Created 11 comprehensive scripts for Acronis backup management: Installation & Setup: - acronis-install.sh: Download/install agent with multiple modes * Interactive, unattended, with/without registration * Supports token-based registration during install * Auto-service startup and verification - acronis-register.sh: Register agent with Acronis Cloud * Validates service URL and token * Shows current registration status * Safe re-registration with confirmation - acronis-configure.sh: Guidance for backup plan configuration * Web console walkthrough * Common backup plan examples Backup Operations: - acronis-manual-backup.sh: Manual backup creation guide * Web console and CLI methods * Ready for full CLI implementation - acronis-status.sh: View backup status from logs * Recent backup activity * acrocmd integration ready - acronis-list-backups.sh: List available backup archives * acrocmd integration for archive listing - acronis-restore.sh: Restore from backup guide * Multiple restore methods explained * Safety warnings and best practices Management: - acronis-agent-status.sh: Comprehensive service status * All 4 services (aakore, mms, schedule, active-protection) * Registration status, network ports, storage * Quick actions: start/stop/restart/logs/version - acronis-update.sh: Agent update management * Auto and manual update methods * Version checking - acronis-logs.sh: Advanced log viewer * View, tail, search logs * Error filtering with color coding * Log archival for old logs - acronis-uninstall.sh: Safe agent removal * Stops services, unregisters, removes packages * Optional data retention * Comprehensive cleanup All scripts based on documented Acronis commands with proper error handling, status validation, and user-friendly interfaces.
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
source "$SCRIPT_DIR/lib/common-functions.sh"
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
print_error "This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
print_banner "View Backup Status"
|
|
|
|
echo ""
|
|
echo -e "${BOLD}Acronis Backup Status${NC}"
|
|
echo ""
|
|
echo "Checking backup status..."
|
|
echo ""
|
|
|
|
# Check if acrocmd exists
|
|
if ! command -v acrocmd &>/dev/null; then
|
|
echo -e "${YELLOW}acrocmd CLI tool not found${NC}"
|
|
echo ""
|
|
echo "Backup status is available through:"
|
|
echo " • Acronis web console (real-time status)"
|
|
echo " • Agent logs (see 'View Logs' option)"
|
|
echo ""
|
|
echo "To use CLI: acrocmd may need to be installed separately"
|
|
echo ""
|
|
press_enter
|
|
exit 0
|
|
fi
|
|
|
|
# Show recent backup activities from logs
|
|
if [ -f "/var/lib/Acronis/BackupAndRecovery/MMS/mms.0.log" ]; then
|
|
echo -e "${BOLD}Recent Backup Activity:${NC}"
|
|
echo ""
|
|
grep -i "backup.*completed\|backup.*started\|backup.*failed" /var/lib/Acronis/BackupAndRecovery/MMS/mms.0.log 2>/dev/null | tail -10
|
|
echo ""
|
|
fi
|
|
|
|
echo "For detailed status, use:"
|
|
echo " • Web console: Full backup history and status"
|
|
echo " • acrocmd: Command-line status queries"
|
|
echo ""
|
|
press_enter
|