]> code.octet-stream.net Git - photosorter/blob - README.md
Initial git commit
[photosorter] / README.md
1 # photosorter
2
3 A personal tool for monitoring for new photos synced from a phone via SyncThing and placing them into the real photos directory automatically.
4
5 Each photo's modification time is used to determine the year it was taken and it is copied to `${target}/${year}/${filename}`.
6
7 A cache of seen files is maintained in `~/.cache` so that files which are deleted from the target directory are not re-copied.
8
9 ## Usage
10
11 Compile:
12
13 ```
14 go build
15 ```
16
17 Install the binary in a location such as `/usr/local/bin/photosorter`.
18
19 Copy the provided systemd template `photosorter.service` to `~/.config/systemd/user/` and edit the source path (`-s`) and target path (`-t`) to match your needs.
20
21 Activate the service:
22
23 ```
24 systemctl --user enable photosorter
25 systemctl --user start photosorter
26 ```
27
28 Watch output with:
29
30 ```
31 journalctl --user-unit photosorter -f
32 ```
33
34 ## Licence
35
36 MIT