Skip to content

phockup

Command-line tool that sorts photos and videos into year, month and day folders

Permissive (OSI) · MIT

Listed by , founder & editor

12

Health

Dormant

Overview

Stars

1,016

Last commit

3 years ago

Dec 2023

Repository age

10 years

since Sep 2016

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

47k

ivandokov/phockup

Language

Python

Phockup is a Python command-line tool that organizes photos and videos from your camera. It reads creation dates with ExifTool and copies files from an input directory into an output directory, sorted into folders by year, month and day.

File contents are never changed. Phockup only renames files and places them in the right folder. Files that are not images or videos, or that lack a creation date, go into a folder called unknown with their names unchanged. Every file from the input directory ends up in the output, so you can delete the input afterward.

If a target file already exists, Phockup compares checksums. Identical files are skipped, and different files get a numeric suffix such as -1. A Docker image supports a single run or a continuous mode driven by a cron schedule, and a Homebrew install is available on Mac. It is MIT licensed. It is a tidy-up tool for photo archives rather than a full gallery, so it fits as a step before a photo manager.

Who it's for

Photographers with messy camera dumps

It sorts everything into date folders and keeps duplicates out by checksum.

Skip if: You want a browsable gallery with albums and search.

NAS owners with an import folder

The Docker continuous mode runs on a cron schedule against mounted input and output folders.

Skip if: You want a tool that is still being actively developed.

The problem it solves

Camera cards and phone backups pile up as unsorted files with clashing names. Phockup sorts them into dated folders without touching the originals and skips duplicates.

Strengths

  • Copies files without altering their content
  • Checksum comparison skips true duplicates and suffixes name clashes
  • Undated files go to an unknown folder, so nothing is lost
  • Docker image with single-run and cron-driven modes
  • MIT license

Trade-offs

  • No gallery or viewing interface, only file sorting
  • Maintenance is dormant: last commit in December 2023
  • Command-line only, with no graphical interface

Self-host phockup

Self-hostable
No (desktop or local app)
Docker image
ivandokov/phockup

Quick start

docker run -v ~/Pictures:/mnt ivandokov/phockup:latest /mnt/input /mnt/output [PHOCKUP ARGUMENTS]

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Phockup free?

Yes. It is open source under the MIT license.

Does it change my original files?

No. It copies files to the output directory and only renames them and places them in date folders.

How does it handle duplicates?

It compares checksums. If they match, the copy is skipped. If they differ, the new file gets a numeric suffix such as -1.

Can I run it in Docker?

Yes. The image supports a single run or a continuous mode scheduled with cron syntax.

Similar tools in Photo galleries and managers

Aves Libre

Photo galleries and managers

Android gallery and metadata explorer for unusual image and video formats

5.5k 267 today Thriving BSD-3-Clause

fussel

Photo galleries and managers

Static photo gallery generator for people who want to host albums on any web server

315 26 7 days ago Active MIT

qView

Photo galleries and managers

Minimal cross-platform image viewer for people who want fast, simple photo browsing

3.8k 223 20 days ago Slowing GPL-3.0

Geeqie

Photo galleries and managers

628 105 today Thriving GPL-2.0