Welcome to the Unraid-Scripts repository! This repository contains a collection of scripts designed to enhance the functionality and automation of your Unraid server.
1. Veeam VM and Docker Shutdown and Reboot Script (I use Veeam for backup. See https://www.veeam.com/ for more details)
This script safely shuts down the Veeam VM and all running Docker containers, then schedules a server reboot. It ensures that the VM and containers are properly stopped before rebooting to prevent data loss or corruption.
- Safely shuts down the Veeam VM
- Stops all running Docker containers
- Logs all actions with timestamps
- Schedules a server reboot with a 2-minute warning
- Place the script in your Unraid server, preferably under
/boot/config/plugins/user.scripts/scripts/
(If you are using 'User Scripts'). - Ensure the script is executable:
chmod +x /boot/config/plugins/user.scripts/scripts/unraid_reboot.sh
- Schedule the script to run at your desired time using 'User Scripts' cron or by editing the crontab:
This example schedules the script to run every Wednesday at 2:00 AM.
0 2 * * 3 /boot/config/plugins/user.scripts/scripts/unraid_reboot.sh
Feel free to contribute to this repository by submitting issues or pull requests. If you have any useful scripts for Unraid, you are welcome to share them here.
This project is licensed under the MIT License - see the LICENSE file for details.