home > projects

pt

pt is a command line tool transfers photos and videos from a source directory to a destination using variables.

pt requires exiftool to be installed and available within the PATH.

Install

Download latest version:

$ wget https://download.compounddata.com/projects/pt/v0.3/pt_linux_amd64.tar.xz
$ tar xvf pt_linux_amd64.tar.xz

Only linux builds on amd64 and arm64 are supported at this time.

Arguments

Variables

Example

Copy photos and videos from /media/camera/DCIM/100MSDCF to ~/photos using full year of the recording as directory and rename file to when it was created in the format of YYYYmmDD-HHMMSSmmm.JPG.

$ ./pt -source /media/camera/DCIM/100MSDCF \
    -destination ~/photos/%YR/%YR%mmmR%dR-%HR%MmR%SsR%MSR.%EuP
transferred /media/camera/DCIM/100MSDCF/DSC09877.JPG to /home/rene/photos/2026/20260615-095208422.JPG
transferred /media/camera/DCIM/100MSDCF/DSC09878.JPG to /home/rene/photos/2026/20260615-095236463.JPG

Source

code.compounddata.com/pt