This script accomplished the following tasks:
✅ Asks your backup file path
✅ Asks where to restore the backup
✅ Detects if your backup is encrypted (and decrypted it if so)
✅ Checks disk space before restoration
✅ Asks if you want to restart system services (and displays a summary of restarted services)
✅ Asks if you would like to receive an email about the restoration process (even if the restoration fails)
✅ Asks if you would like to reboot the system after the restoration
✅ Logs each operation to track the restoration process
To run the script:
./restore.shTo restore backed up system files, run the script with root privileges:
sudo ./restore.sh