otb - file organiser

I’m not sure if it would be of use to any of you, but over the last view days I’ve been working on a relatively small shell script which you can use to import images/photos and organise them by date. I plan to add more ways to organise, when I extend the templates…

It uses exiftool to allow you to add tags and ratings via an xmp sidecar, and b3sum for file checksums to scan for duplicates.

It’s made in POSIX shell, so it’s only limited to Linux and macOS users.

If you are interested, I’ve linked it below. I haven’t tested it on larger portfolios though yet.

4 Likes

Hi and welcome! Nice to see someone writing a tiny app in shell! :sunglasses:

2 Likes

Update for Version 0.2.1

new template options

  • %camera
  • %model
  • %type

You can now use new variables for the --template option in import, so you can do something like:

# import organized by file type
otb --template "%type/%Y/%m" import ~/Downloads/

# or

# organize by camera make and model
otb --template "%camera/%model/%Y/%m" import ~/Downloads/

%type will import your source folder and sort by file type. Current types are:

  • image
  • raw
  • video
  • doc
  • audio
  • archive
  • other

upgraded audit command

audit will now allow you to:

  • --fix and update the checksums manifest
  • --add newly added files, that were not imported with the import command.
1 Like