Implement Acronis Cyber Protect agent management scripts
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.
This commit is contained in:
Executable
+45
@@ -0,0 +1,45 @@
|
||||
#!/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 "List Available Backups"
|
||||
|
||||
echo ""
|
||||
echo -e "${BOLD}Available Backups${NC}"
|
||||
echo ""
|
||||
|
||||
# Check if acrocmd exists
|
||||
if ! command -v acrocmd &>/dev/null; then
|
||||
echo -e "${YELLOW}acrocmd CLI tool not found${NC}"
|
||||
echo ""
|
||||
echo "To list backups:"
|
||||
echo " • Use Acronis web console (recommended)"
|
||||
echo " • Log in and navigate to: Backup → Backup plans"
|
||||
echo " • View all backup archives and recovery points"
|
||||
echo ""
|
||||
echo "Command line option:"
|
||||
echo " acrocmd list archives"
|
||||
echo " acrocmd list recoverypoints"
|
||||
echo ""
|
||||
press_enter
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Querying backup archives..."
|
||||
echo ""
|
||||
|
||||
# Try to list archives
|
||||
if acrocmd list archives 2>/dev/null; then
|
||||
echo ""
|
||||
else
|
||||
echo "No archives found or command failed"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
press_enter
|
||||
Reference in New Issue
Block a user