ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: txastro on April 30, 2018, 09:43:04 PM

Title: restore original
Post by: txastro on April 30, 2018, 09:43:04 PM
Hello,
I have some image backups that I want to restore.  They are located in Z:\Photos\20180428.  When I executre the command exiftool -restore_original Z:\Photos\20180428, I get a message that 1 directory scanned, but 0 original files found.

Can anyone point me to the error in my command?

Thanks,
Xavier
Title: Re: restore original
Post by: Phil Harvey on May 01, 2018, 07:21:22 AM
Hi Xavier,

The -restore_original option restores from "_original" files that ExifTool created.  They must be in the same directory as the edited files.

- Phil
Title: Re: restore original
Post by: txastro on May 01, 2018, 11:58:38 AM
Hi Phil,
I know my mistake then.  I deleted all but the backup "_original" files, so they no longer exists in that directory.  There's a chance my offline backup grabbed them.  I can also rename copies of them back to jpg.   I know what NOT to do now!   :)

Thanks for the help!
Xavier
Title: Re: restore original
Post by: StarGeek on May 01, 2018, 01:12:11 PM
Quote from: txastro on May 01, 2018, 11:58:38 AMI can also rename copies of them back to jpg.

You could use exiftool to quickly rename them.
exiftool "-filename<${filename;s/_original//}" Z:\Photos\20180428
Title: Re: restore original
Post by: txastro on May 01, 2018, 01:35:41 PM
Excellent, thanks!!!
Title: Re: restore original
Post by: Phil Harvey on May 01, 2018, 01:55:48 PM
Quote from: StarGeek on May 01, 2018, 01:12:11 PM
exiftool "-filename<${filename;s/_original//}" Z:\Photos\20180428

You would need to specify "Z:\Photos\20180428\*_original" or something like that to pick up the "_original" files.  ExifTool won't process them by default.

- Phil
Title: Re: restore original
Post by: txastro on May 01, 2018, 10:21:16 PM
That worked perfectly.  Thanks!

Xavier