A
A
Andrew2021-11-13 14:52:12
linux
Andrew, 2021-11-13 14:52:12

What is the best way to recover deleted files (btrfs)?

Hello!
I mistakenly deleted the contents of the /home/user/Documents directory on my home PC (FS ext4). Because Nextcloud desktop is installed and synchronization with the server is in real time, some of the files that are very valuable to me have managed to be deleted on the server (NAS Synology + BTRFS + encryption), until the synchronization service files were deleted (according to the law of meanness, 130 GB were deleted from 500 GB GB of the most important information, most of the photo album).

By no less stupidity, when using photorec for data recovery on a PC, the source disk was specified for storing the recovered files, which resulted in overwriting. In addition, disordered data from a 1 TB disk simply cannot be analyzed based on the results of recovery and almost all are broken.
Hope for BTRFS in the north. As far as I understand, btrfs allows you to work with remote data, even while maintaining the folder structure.
While I am writing this question, the command is running:

dd if=/dev/mapper/vg1-volume_1 of=/volume2/repair/Disk.iso

Please tell me how to proceed further so as not to screw up and recover deleted files from /volume1/..../directory

UPD. For the best work advice, I'll transfer a small reward, if you'd like.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2021-11-13
@peacedos

The solution turned out to be extremely simple.
Armenian Radio said in the comments (unfortunately I can’t mark his comment as a solution) that “nextcloud has delayed deletion enabled by default”. At first I assumed that he was talking about the recycle bin, however, in the user/files_trashbin/files Nextcloud folder, you can find files deleted by external requests, while for some reason they were not displayed in my recycle bin.
If anyone finds themselves in the same situation with Nextcloud, please be aware.

A
Alexander Karabanov, 2021-11-13
@karabanov

Don't even try - you'll waste your time and probably make things worse.
If the files are really valuable, then take them to data recovery specialists and give them the reward (although if they are encrypted, then there is little hope).
PS
And yes, this is the very turning point after which you start making backups.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question