Is binary check after copy possible ?

Started by captured, December 17, 2016, 12:33:05 PM

Previous topic - Next topic

captured

System;
- Debian Linux Sid 64 bit, ext4
- exiftool v. 10.63

Objective;
Incorporate a binary check after exiftool copy.

Explanation;
I am copying from 'Source' directory to 'Destination' directory as follows...
$ exiftool -m -P -o /media/user/Destination/ '-Directory<${DateTimeOriginal;}/${Model;}' -d "%Y-%m-%d" /media/user/Source/

This produces the result I wish, all images sorted by Date, then by Camera Model.

Question(s);
- What method of exiftool's 'copy' is used ?
- Is is possible for me to incorporate some sort of 'binary' check on the copy after the copy is performed ?
   For example, in linux (rsync -c, diff, md5sum, cmp) ?

That way I'll know the copy was 100 percent successful.

Thank you Phil.

Hayo Baan

As far as I know, exiftool always checks the result of system calls (of which writing file is one), so if exiftool did not report any failure, you can assume the write (copy) was successful.

Does this answer your question sufficiently?

Note: when "adjusting" files, exiftool always (re)writes the full content of the file.
Hayo Baan – Photography
Web: www.hayobaan.nl

captured

QuoteDoes this answer your question sufficiently?

If you are defining 'system call' as the same copy as a copy and paste,
sorry but it does not answer my question entirely.

I am seeking to know if exiftool can be used to make a 100 percent binary
check on the copy it made either with it's own program or in conjuntion with
other linux tools available for this, in a similar fashion to how rsync -c, md5sum, diff, cmp
would verify an identical 100 percent copy result.

Thank you.

StarGeek

No, exiftool doesn't have the ability on its own to double check its copy.  You would have to do something else to double check.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

captured