So while troubleshooting a problem which surfaced after installing a new modem, I was on the phone to my local dealer.. and with several windows open on my Mac accidentally deleted my "shared music" folder on my Synology NAS, instead of the "Music Shares" folder on my SSD.. I desperately searched for the un-delete command in the DS assistant app' and unless you configure a safety net function, it doesn't exist!
I tried pulling the 2 disks (which I have configured in RAID 1 mirror format) from the unit, and tried a couple of recovery apps from my macbook. As the Synology uses Linux, its not easy to see anything, and as of this morning im still free of music except for Tidal&Vinyl.
As my Synology only serves my 1500 ripped CDs, its a closed system, so I know nothing has been overwritten. Not a Linux expert, but Im hoping all I did was delete the header information and the files are all there.
Any experience, tools, resources would be much appreciated... can't believe I did this!
Posted on: 18 March 2016 by Harry
The best tool you can use is the backup you took of the NAS. You did make an external backup didn't you? You must have.
OK. Plan B. Restore from the Recycle Bin?
Past that I think you might be ****ed to a greater or lesser extent. I have used recovery applications on clients' systems to retrieve accidentally deleted files but nothing ever restores everything - at least not in my experience. Don't think I've ever used a Linux one so maybe there might be hope. Doubt it, although you have nothing to lose.
Shame about that backup.
Posted on: 18 March 2016 by Naimthatune
Trust me, I have backups of everything, but when I configured the NAS as a raid1 I thought, 'well that's all nice and safe then'... nightmare..
I read somewhere that Linux has some file that tracks the deletions, if I could only 'undelete' it...
Posted on: 18 March 2016 by Mike-B
Have you looked into the recycle folder .......... to find it with Synology's UPnP Media Server, look in the Syn webpage & the File Station.
If you have not enabled the recycle bin or if what you say is correct & you've deleted the whole share .......... your only hope is your backup.
Posted on: 18 March 2016 by blythe
I hope you manage to either retrieve the files from a recycle bin (or equivalent) or using some kind of file retrieving software....
RAID mirror, is not an alternative to a back-up.
Posted on: 18 March 2016 by Guy007
On QNAP's, if you enable it, there is the "Network recycle bin" in the Overview section, where you can set the retention schedule prior to purge. You can access the deleted files on the Recycle bin on the NAS drive. This will be a quicker recovery than copying from a backup drive.
Hope it's not too much hassle getting the music back naimthatune, but serves as a good warning to others, and a reminder for backups.
Posted on: 19 March 2016 by Simon-in-Suffolk
I hope you can restore from backup, or the inbuilt archiving system if activated as mentioned above.
For the future you might want to think about permissions. I have set my NASs up such that to delete and create files I have to be logged in as a specific admin type user. Regular access and the access used by my media servers etc is read only... This has also prevented a few accidental deletions.
Simon
Posted on: 19 March 2016 by juanito
If your NAS uses linux, you can probably use ssh to connect to it from another computer on your home network - the OEM website might have instructions on how to do this.
Depending on what filesystem your NAS uses and depending on whether journaling was enabled, you might be able to do something with one or more recovery tools.
I recently accidentally deleted a bunch of files on a non-RAID hd using the linux ext2 filesystem and was unable to recover anything after trying for some time with several linux file recovery tools.
A couple of years back, two out of four hd failed in my Thecus NAS and I was able to connect to it with ssh, manually assemble the RAID and recover a few files after a lot of effort - I seem to recall this was with a linux ext4 filesystem. (I started to use RAID6 and a backup thereafter.)
All this to say that if you don't have a backup, you've probably had it 