Recover lost data Restore removed files Reclaim deleted information Return lost documents
Recover lost data Restore removed files Reclaim deleted information Return lost documents
Hello, I'm using Debian with XFCE. Last night I made an error and deleted all my backup files—photos, documents, etc. I checked the trash folder but found nothing there. So I tried recovering the data using photorec. It worked, but the files are spread across many directories like rec_dir1, 2, 3... and also inside .cab, ttf, xml and other folders that weren't in the backup. I looked on forums and saw that the trash should be in /home/usrname/.local/share/Trash/files, but there isn’t one there. I also checked ~/Documents/Trash-1000, but that folder doesn’t exist. I managed to recover some files, but they ended up in about 300 different folders, which would take a long time to sort manually.
You have no alternative... by the way, can you just restart the system again?
Sure, I can help with that. What specific issue are you trying to fix on Linux?
Avoid creating a basic shell script for this task. Instead, focus on organizing your approach clearly.
I believe the issue arises because in folder 1 there are three subsequent folders, each containing files, and the recovered files lack their original names—only codes such as 0135135.png remain.
You could use the 'find' utility to generate a list of valid recovered image files, after which you'll need to rename them and organize them into folders yourself. http://man7.org/linux/man-pages/man1/find.1.html The system that keeps track of folder structures is the file-system table. Removing a file deletes its record from this table, which explains why some tools can restore data but not metadata such as names or directories. You'll have to handle this manually. P.S. I favor Backintime for its snapshot capabilities and efficient storage management.