mirror of
https://github.com/007revad/Synology_Recover_Data.git
synced 2026-07-30 17:14:19 +02:00
8a8f0cd5d837e6feb2ec5e4397d2e66d5f9a493d
v0.0.6-beta - Now checks if there are RAID arrays that need assembling before continuing.
Synology Recover Data
Description
A script to make it easy to recover your data from your Synology's drives using a computer
This is still a work in progress...
If you are willing to test it, all feedback is welcome.
What does the script do?
The script automatically does steps 4 to 15 from this web page:
https://kb.synology.com/en-id/DSM/tutorial/How_can_I_recover_data_from_my_DiskStation_using_a_PC
So you need to do steps 1 to 3 from that web page.
The same environment rules as on Synology's web page apply:
Applicable to:
- DSM version 6.2.x and above
- Volumes using the Btrfs or ext4 file systems
- Ubuntu 22.04.4 LTS (Synology's recommended 18.04 has a bug with persistent partition)
Not applicable to:
- Volumes using read-write SSD cache
Currently the script does NOT support:
- Encrypted volumes
- Encrypted shared folders
At the moment the script only support mounting 1 volume at a time. You'd need to run the script again to mount a 2nd volume.
Setup to recover data using a PC
- Make sure your PC has sufficient drive slots for drive installation (you can use a USB dock).
- Remove the drives from your Synology NAS and install them in your PC or USB dock. For RAID or SHR configurations, you must install all the drives (excluding hot spare drives) in your PC at the same time.
- Download the Desktop image for Ubuntu version 22.04.4 LTS
- You'll need an 8GB or larger USB drive.
- Prepare a Ubuntu environment by following the instructions in this tutorial with 1 exception:
- Set Persistent partition size in Rufus to greater than 0 so any changes you make in Ubuntu are saved to the USB drive.
- Once Rufus has finished creating the boot drive you can reboot the computer, enter the BIOS and set ti to boot from the USB drive, and boot into Ubuntu.
Setup in Ubuntu
- Open Firefox from the tool bar and go to https://github.com/007revad/Synology_Recover_Data and download the latest release's zip file.
- Open Files from the tool bar and click on Downloads, right-click on the zip file and select Extract.
- Right-click on the syno_restore_data.sh file and select Properties.
- Click Permissions.
- Change others Access to Read and write.
- Tick Allow executing file as program.
- Copy syno_recover_data.sh up 1 level to home.
- Click on the Applications icon on the bottom left of the desktop.
- Right-click on Terminal and click on Save to favorites.
Running the script
Screenshots
DSM 7 with 2 storage pools and volumes
DSM 6 single volume
Languages
C
49.8%
Shell
39.7%
PowerShell
10.5%





