Engine Backup

Steps

  1. Transfer backup script to Engine.
  2. Make script executable and run backup.
    # Make script executable
    chmod +x /root/backup_engine.sh
    
    # Run backup (as root)
    ./backup_engine.sh

    Expected Output (verify for any errors):

    [2025-12-09 11:00:00] ===================================================
    [2025-12-09 11:00:00] Starting AMDP On-Prem Engine Backup Process
    [2025-12-09 11:00:00] ===================================================
    [2025-12-09 11:00:00] Backup directory: /root/amdp_eng_backup_20251209_110000
    [2025-12-09 11:00:00] Archive will be created at: /root/amdp_eng_backup_20251209_110000.tar.gz
    ...
    [2025-12-09 11:25:30] Backup completed successfully!
    [2025-12-09 11:25:30] ===================================================
    [2025-12-09 11:25:30] Backup archive: /root/amdp_eng_backup_20251209_110000.tar.gz
    [2025-12-09 11:25:30] Log file: /root/amdp_eng_backup_20251209_110000.log
    [2025-12-09 11:25:30] 
    [2025-12-09 11:25:30] Please transfer this file to the Ubuntu 24.04 server for restoration.
    [2025-12-09 11:25: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_eng_backup_20251209_100000.tar.gz
    
    # Verify backup log for any errors
    tail -100 /root/amdp_eng_backup_20251209_100000.log
  4. Transfer backup to secure location.
    # Example: Copy to network share
    scp /root/amdp_eng_backup_20251209_100000.tar.gz user@backup-server:/backups/amdp/
    
    # Verify transfer
    sha256sum /root/amdp_eng_backup_20251209_100000.tar.gz