Restore entire Windows or Linux machines
You can restore a full machine or volume to a previous state using recovery media. The ActiveProtect Recovery Media Creator helps you create recovery media for bare-metal or volume-level restores on both Windows and Linux machines.
You can download this tool from the Recovery Portal or the Download Center (under Desktop Utilities).
To restore data from your Synology NAS, refer to Restorations after joining an ActiveProtect site for details.
Requirements and limitations
- To restore Windows machines, you need to install the ActiveProtect Recovery Media Creator. The following operating systems are supported:
- Windows 11 (all editions)
- Windows 10 (all editions)
- Windows Server 2022
- Windows Server 2019
- Windows Server 2016
- Network connection is required during restoration.
- We recommend installing all the required drivers before restoration.
- Only simple volumes are supported for dynamic disk restorations.
- Supported media types:
- USB drives:
- Required capacity: 1 GB
- Required local system volume storage capacity for temporary files: 2.5 GB
- Supported recovery model: UEFI 64-bit
- ISO images:
- Required capacity: 1 GB
- Required local system volume storage capacity for temporary files: 2.5 GB
- Supported recovery model: Legacy/UEFI 64-bit
- USB drives:
Install ActiveProtect Recovery Media Creator
- Sign in to your ActiveProtect appliance.
- Go to Machines > PCs/Macs or Physical Servers to select your machine.
- Click More > Open Recovery Portal.
- Click Restore > Restore Entire Machine and download the ActiveProtect Recovery Media Creator.
You can also download ActiveProtect Recovery Media Creator from the Download Center (under Desktop Utilities). For Linux, it's available as an ISO image named "Synology-Recovery-Media.iso".
Create recovery media
With ActiveProtect Recovery Media Creator, you can create a bootable USB drive or ISO image for CD creation. Boot from these media to access the embedded recovery tool and restore your machine from your backup server.
Create recovery media for Windows
- Launch the ActiveProtect Recovery Media Creator and select USB media or ISO media:
- For USB media, insert a USB drive with the required capacity.
- For ISO media, specify the location where the recovery media will be saved.
- Click Create.
- If Windows Assessment and Deployment Kit (ADK) or Windows Preinstallation Environment (Windows PE) isn't installed, the media creator will guide you through the installation process. Make sure Deployment Tools and Windows Preinstallation Environment are selected to build recovery media.
- For USB media, choose your target USB drive and click Create. Once the process begins, it can't be undone.
- The recovery media automatically detects and applies your time zone and language settings to the recovery environment. If they can't be detected, Pacific Standard Time (PST) and English will be used as defaults. This may affect how backup times are shown in the ActiveProtect Recovery Tool.
- After the recovery media has been created, a message will appear on the progress bar.
- Click Finish to open the directory for storing the ISO image. You can either mount the image onto the virtual machine intended for restoration, or burn the image onto a disk by using a third-party tool and insert the disk into the machine that you want to restore.
Note:
- If you want to download Windows ADK and Windows PE in advance, we recommend downloading version 10.1.25398.1 (Windows ADK/Windows PE).
- To install other versions of Windows ADK and PE, refer to Download and install the Windows ADK and Create bootable Windows PE media by Microsoft.
- If you create recovery media manually by replacing WinPE with WinRE, you need to download a WinRE-compatible version of Windows ADK.
- You must be connected to the Internet when downloading and installing Windows ADK. If you cannot use the online ADK installer, refer to Install the Windows ADK offline by Microsoft.
- If the machine you're using to create recovery media runs a 32-bit version of Windows, has different language or region settings, or uses different Windows versions and drivers than the machine you want to restore, you'll need to manually create the recovery media.
Create recovery media for Linux
ActiveProtect recovery media for Linux is implemented via ISO images, which can also be burned to a USB.
Before you start, make sure you've download the ISO file "Synology-Recovery-Media.iso". Refer to Install ActiveProtect Recovery Media Creator for instructions.
Create a bootable USB drive with ISO burning software
- Use 3rd-party ISO burning software to copy "Synology-Recovery-Media.iso" onto a USB drive or DVD.
- You can use this USB drive or DVD to boot up the machine you want to restore.
Create a bootable USB drive for Legacy BIOS
- Open a Linux Terminal and enter the following command to install the packages and dependencies. Ubuntu will be used as an example.
apt-get install syslinux syslinux-utils
- Insert a USB drive.
- List all the partitions to locate the inserted USB drive. The partitions are displayed by their machine's names. For example: "/dev/sda", "/dev/sdb" or "/dev/sdc". Here, we will use "/dev/sdc" as an example.
fdisk -l
- Enter the following command to format the USB drive to FAT32. Replace "/dev/sdc" with the actual name of the USB drive.
mkdosfs -I /dev/sdc -F 32
- Enter the following command to copy "Synology-Recovery-Media.iso" to the USB drive.
dd if=Synology-Recovery-Media.iso of=/dev/sdc bs=1M
- You can use this USB drive to boot up the machine you want to restore.
Create a bootable USB drive for UEFI
- Open a Linux Terminal and enter the following command to mount the downloaded recovery media. Ubuntu will be used as an example.
mkdir -p /mnt/apm
mount -o loop Synology-Recovery-Media.iso /mnt/apm
- Insert a USB drive.
- List all the partitions to locate the inserted USB drive. The partitions are displayed by their machine's names. Here, we will use "/dev/sdc" as an example.
fdisk -l
- Enter the following commands to set the USB drive as a GPT formatted disk and create an EFI system partition.
fdisk /dev/sdc
g
: Create a new empty GPT partition tablen
and1
: Create a partition with default valuest
and1
: Change the partition type to EFI system partitionw
: Save changes
- Enter the following command to format the volume you newly created.
mkfs.vfat -I /dev/sdc1
- Enter the following command to mount the volume.
mkdir -p /mnt/usb
mount /dev/sdc1 /mnt/usb
- Enter the following command to copy "Synology-Recovery-Media.iso" to the USB drive.
cp -r /mnt/apm/* /mnt/usb/
- Enter the following command to unmount the USB drive and the recovery media.
umount /mnt/usb
umount /mnt/apm
- You can use this USB drive to boot up the machine you want to restore.
Boot recovery media
Once you have successfully created recovery media for the machine to be restored, you can use your recovery drive to boot the machine from it.
- Mount the ISO image or insert a USB into the machine to be restored.
- Press F2 to enter the BIOS mode. Note that this hotkey may vary by vendor.
- Go to Boot and prioritize CD-ROM Drive or Removable Devices depending on the location of the recovery media.
- Exit the setup process and you'll be directed to the ActiveProtect Recovery Tool to start the restoration.
Restore your machine
Load drivers and network adapters (optional)
On the ActiveProtect Recovery Tool:
- Click the ⋯ more icon > List of hardware drivers.
- Check if drivers and network adapters need to be installed.
- If required, click Load Drivers.
Note:
- Recovery may fail if the necessary driver isn't installed.
- This doesn't apply to drivers that require a system restart. Refer to Device Installations and System Restarts by Microsoft for details.
Restore from the backup server
On the ActiveProtect Recovery Tool:
- Enter your management server's credentials.1
- Select the workload that you want to restore. Workloads with self-service restore or delegated restore permissions are displayed here.
- Specify the restore mode.
- Select the backup version2 that you want to restore.
- If the selected version requires more drivers, you will get a notification. To resolve this issue, load the required drivers and try again.
- If the selected version requires additional space, you will get a notification listing all the drives that require more capacity. To resolve this issue, consider replacing the installed drives.3
- Confirm the summary and click Next.
Once the restoration has begun4, it's not possible to stop it or to roll it back to where the machine was before the recovery. Cancellation during the process may prevent the machine from booting successfully.
Note:
- If Single Sign-On (SSO) is enabled on the ActiveProtect appliance and Time-based One-Time Password (TOTP) is required for authentication, the restoration process may fail if the TOTP expires. In this case, reauthenticate with the ActiveProtect appliance by entering your credentials again and providing a valid TOTP.
- The backup version will only be available when it's compatible with the selected restore mode. For example, when selecting System volume restore, you can only restore the versions containing the system volume.
- Make sure that each drive in your device has enough capacity to hold the backup size for the selected version.
- If the Internet disconnects during the recovery process, ActiveProtect Recovery Tool will continuously try to reconnect to the server and resume the recovery.
Troubleshoot Windows restoration issues
Recovery media creation fails
If the creation process fails at any point, the ActiveProtect Recovery Media Creator will automatically finish the current stage, and then unmount and delete boot.wim. Recovery media created in USB format can't be rolled back once the creation process has begun.
If recovery media creation fails during the creation process, open the extracted folder named Synology Restore Media Creator and fetch the log titled restore-media.log. Then, send the log to Synology Technical Support for further assistance.
Recovery fails
If a bare-metal or volume-level recovery has failed, you can retrieve recovery logs and send it to Synology Technical Support for further assistance.
Note that "recovery.log" is only retrievable via the ActiveProtect Recovery Tool before you restart or shut down your machine.
- Click the gear icon > Command-line interface.
- Enter "notepad" and press Enter to launch Notepad. Select Open in Notepad to check the drive letter of the inserted USB drive.
- Enter the following command to copy the file to the USB drive. You will see a confirmation message after running the command. For example, if the drive letter of the USB drive is "S", the command should look like this:
copy X:\ActiveProtectRecovery\recovery.log* S:
xcopy /E /I X:\ActiveProtectRecovery\resource\command S:
- Go to the USB drive where you copied the log files and send them to Synology Technical Support for further troubleshooting.
Recovery Tool crashes
If the AcitveProtect Recovery Tool crashes when you're trying to perform a bare-metal or volume-level recovery, find the dump file and send it to Synology Technical Support for further assistance.
- Enter "notepad" and press Enter to launch Notepad. Select Open in Notepad to check the drive letter of the inserted USB drive.
- Enter the following command to copy the dump file, log file, and other files to the USB drive. You will see a confirmation message after running the command. For example, if the drive letter of the USB drive is "S", the command should look like this:
copy X:\ActiveProtectRecovery\recovery.log* S:
copy X:\recovery.dmp S:
xcopy /E /I X:\ActiveProtectRecovery\resource\command S:
- Go to the USB drive where you copied the files and send them to Synology Technical Support for further troubleshooting.