Managing millions of pictures

Free code computer screen image

I take lots of pictures. And, it is a challenge to organize, sort and continuously de-dup them. Over the years, I have developed a pipeline to automate this process as much as it is possible. My pictures get automatically synced to a central location where a cron job periodically starts a docker container to run exiftool to rename the files and place them in the right directory structure based on year, month and day. Once the pictures are placed in the right place, Czkawka runs to move duplicates to a holding place where they get eventually deleted.

You can simply download my docker image and get started right away. Here is an example docker-compose.yml file to get started:

Make sure to edit the variables to point to the right directories for input and output sources. You can start your container by using this command where you have the docker-compose.yml file:

Depending on the size of your source directory, this may take time to complete. You can tail the logs directory to see the progress and watch for errors or warnings.

If you wish to build the container yourself, here is the Dockerfile and necessary script:

Here is the actual exiftool script that does the renaming and copying of pictures:

Tags:

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Latest Comments

No comments to show.
0
Would love your thoughts, please comment.x
()
x