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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#!/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 "Configure Backup Plans"
|
||||
|
||||
echo ""
|
||||
echo -e "${BOLD}Acronis Backup Plan Configuration${NC}"
|
||||
echo ""
|
||||
echo "Backup plans are configured through the Acronis web console."
|
||||
echo ""
|
||||
echo -e "${CYAN}Steps to configure backup plans:${NC}"
|
||||
echo ""
|
||||
echo "1. Log in to your Acronis web console"
|
||||
echo " → https://us5-cloud.acronis.com (or your region)"
|
||||
echo ""
|
||||
echo "2. Navigate to: Devices → All devices"
|
||||
echo ""
|
||||
echo "3. Find this server in the device list"
|
||||
echo ""
|
||||
echo "4. Click on the device and select 'Protection'"
|
||||
echo ""
|
||||
echo "5. Click 'Add plan' and configure:"
|
||||
echo " • Backup source (files, folders, system)"
|
||||
echo " • Backup schedule (hourly, daily, weekly)"
|
||||
echo " • Retention policy (how long to keep backups)"
|
||||
echo " • Backup location (cloud or local)"
|
||||
echo ""
|
||||
echo "6. Apply the plan to this device"
|
||||
echo ""
|
||||
echo -e "${BOLD}Common Backup Plans:${NC}"
|
||||
echo ""
|
||||
echo " • Full Server Backup"
|
||||
echo " → Entire system image for disaster recovery"
|
||||
echo ""
|
||||
echo " • cPanel Accounts"
|
||||
echo " → /home/* directories for user data"
|
||||
echo ""
|
||||
echo " • Databases"
|
||||
echo " → MySQL/MariaDB databases with consistent snapshots"
|
||||
echo ""
|
||||
echo " • Configuration Files"
|
||||
echo " → /etc and other critical configs"
|
||||
echo ""
|
||||
echo " • Web Files"
|
||||
echo " → /home/*/public_html websites"
|
||||
echo ""
|
||||
press_enter
|
||||
Reference in New Issue
Block a user