![]() ![]() Once retrieved, I performed my tests on the recovered scripts and they worked as before. You will find earlier versions of your script too. Therefore in this article, you will learn how to recover your lost files on Linux OS using the PhotoRec application. Upon checking the recovery destination, you will find directories and files (I was interested in *.sh files) as shown below:Īfter performing a few “find and grep” commands looking for my script content, I retrieved the latest version of all my scripts. But on the flip-side, it is quite easy to recover those deleted files (under some conditions). The image below is a screenshot of the recovery process. Use lsblkto confirm the partition on which your lost files resided and execute sudo photorec (e.g. Photorec is quite straightforward to use and recovers files based on your selected file types into a selected destination. ![]() ![]() After frantically looking for tools to recover my scripts, I came across TestDisk/PhotoRec and photorec saved my bacon. Cependant, au fil du temps, ce programme a obtenu la capacité de récupérer les fichiers de 400 extensions différentes. PhotoRec will scan a hard drive for deleted files and automatically recover them to a location you specify. PhotoRec est un programme open source, créé à l’origine pour la récupération de fichiers à partir de disques endommagés ou pour la récupération de fichiers au cas où ils seraient supprimés. ![]() It was primarily designed to help recover lost. PhotoRec is a free file recovery tool that is bundled with the TestDisk program. My heart sank because I had no backup and hadn’t yet checked in my scripts into git. And TestDisk is free data recovery software that you can recover any sort of deleted files with TestDisk. After spending a few hours on developing some scripts, I hastily fat-fingered a command and removed my entire scripts directory on my RHEL 7 server. PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks, compact disk read-only memory (. ![]()
0 Comments
Leave a Reply. |