Manager Backup

Steps

  1. Transfer backup script to Manager.
  2. Make script executable and run backup.
    # Make script executable
    chmod +x /root/backup_manager.sh
    
    # Run backup (as root)
    ./backup_manager.sh
    Expected Output (verify for any errors):
    [2025-12-09 10:00:00] ===================================================
    [2025-12-09 10:00:00] Starting AMDP On-Prem Manager Backup Process
    [2025-12-09 10:00:00] ===================================================
    [2025-12-09 10:00:00] Backup directory: /root/amdp_mgr_backup_20251209_100000
    [2025-12-09 10:00:00] Archive will be created at: /root/amdp_mgr_backup_20251209_100000.tar.gz
    
    ...
    [2025-12-09 10:45:30] Backup completed successfully!
    [2025-12-09 10:45:30] ===================================================
    [2025-12-09 10:45:30] Backup archive: /root/amdp_mgr_backup_20251209_100000.tar.gz
    [2025-12-09 10:45:30] Log file: /root/amdp_mgr_backup_20251209_100000.log
    [2025-12-09 10:45:30] 
    [2025-12-09 10:45:30] Please transfer this file to the Ubuntu 24.04 server for restoration.
    [2025-12-09 10:45:30] You can use scp, rsync, or other file transfer methods.
  3. Verify backup archive.
    # Check backup file exists and size
    ls -lh /root/amdp_mgr_backup_20251209_100000.tar.gz
    
    # Verify backup log for any errors
    tail -100 /root/amdp_mgr_backup_20251209_100000.log
  4. Transfer backup to secure location.
    # Example: Copy to network share
    scp /root/amdp_mgr_backup_20251209_100000.tar.gz user@backup-server:/backups/amdp/
    
    # Example: Copy to external storage
    cp /root/amdp_mgr_backup_20251209_100000.tar.gz /mnt/external-storage/
    
    # Verify transfer
    sha256sum /root/amdp_mgr_backup_20251209_100000.tar.gz
    # Compare checksum at destination