ExifTool Forum

ExifTool => Newbies => Topic started by: tung on June 17, 2021, 09:05:19 AM

Title: Newbie need help recovering deleted files
Post by: tung on June 17, 2021, 09:05:19 AM
Hi, I am newbie here. I need help recovering the original files from "arw_original" files that are being left in the folder. All my original files are disappeared (deleted/wiped out). All I have now is the "arw_original" files.
Thank you so much
ps. I use a sony A7II
Title: Re: Newbie need help recovering deleted files
Post by: tung on June 17, 2021, 09:21:05 AM
found a silly solution: Just manually remove/delete the term "original" from the arw_original extension. One by one.
Title: Re: Newbie need help recovering deleted files
Post by: Luuk2005 on June 17, 2021, 10:01:30 AM
Also, instead of one by one, can do them all like...
exiftool -r -ext arw_original -filename"<${filename;s/_original$//}" DIR

Edit: Change double-quotes to single:quotes for non-Windows
Title: Re: Newbie need help recovering deleted files
Post by: StarGeek on June 17, 2021, 11:57:46 AM
Normally you could use the -restore_original option (https://exiftool.org/exiftool_pod.html#restore_original), but that wouldn't help in this case because exiftool requires the edited versions to restore to.