8fbfc73991
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>
59 lines
1.9 KiB
Bash
Executable File
59 lines
1.9 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 "Restore from Backup"
|
|
|
|
echo ""
|
|
echo -e "${RED}${BOLD}⚠️ RESTORE OPERATION ⚠️${NC}"
|
|
echo ""
|
|
echo "Restoring from backups requires careful planning to avoid data loss."
|
|
echo ""
|
|
echo -e "${BOLD}Restore Methods:${NC}"
|
|
echo ""
|
|
echo -e "${CYAN}1. Web Console Method (Recommended)${NC}"
|
|
echo " • Most user-friendly with visual interface"
|
|
echo " • Full preview of backup contents"
|
|
echo " • Granular file/folder selection"
|
|
echo ""
|
|
echo " Steps:"
|
|
echo " a) Log in to Acronis web console"
|
|
echo " b) Navigate to: Backup → Recovery"
|
|
echo " c) Select backup archive"
|
|
echo " d) Choose recovery point (date/time)"
|
|
echo " e) Select files/folders to restore"
|
|
echo " f) Choose restore destination"
|
|
echo " g) Start recovery process"
|
|
echo ""
|
|
echo -e "${CYAN}2. Command Line Method${NC}"
|
|
echo " • For advanced users and automation"
|
|
echo " • Requires acrocmd CLI tool"
|
|
echo ""
|
|
echo " Basic syntax:"
|
|
echo " acrocmd recover --archive <archive_id> \\"
|
|
echo " --recoverypoint <point_id> \\"
|
|
echo " --destination /restore/path"
|
|
echo ""
|
|
echo -e "${CYAN}3. Bootable Media Recovery${NC}"
|
|
echo " • For full system disaster recovery"
|
|
echo " • Boot from Acronis bootable USB/ISO"
|
|
echo " • Restore entire system image"
|
|
echo ""
|
|
echo -e "${BOLD}Important Notes:${NC}"
|
|
echo ""
|
|
echo " ⚠ Test restores in a non-production environment first"
|
|
echo " ⚠ Verify backup integrity before critical restores"
|
|
echo " ⚠ Consider restoring to alternate location first"
|
|
echo " ⚠ Backup current data before overwriting"
|
|
echo ""
|
|
echo "Would you like me to implement an interactive restore wizard"
|
|
echo "with CLI backup browsing and restore capabilities?"
|
|
echo ""
|
|
press_enter
|