Skip to content

Commands

WXY edited this page Feb 15, 2021 · 3 revisions

While the daemon is running, it can be controlled via several commands

The following depicts what some of the command effectively does in relation to how the pipeline typically work

fs-curator pipeline - block diagram

Rebuild A Store

curator --offer GROUP STORE
curator --offer FIRST_GROUP LAST_GROUP STORE

--offer or -o notifies the program to re-run the post-import procedures for a group of files and against a particular store. This is most useful for stores that uses the link transfer mechanism as a way to either:

  1. Recover a destroyed directory structure
  2. Build a different directory structure after a path format change

Rebuild Thumbnails

curator --thumbnail GROUP STORE
curator --thumbnail FIRST_GROUP LAST_GROUP STORE

--thumbnail or -t- is essentially --offer after the file transfer phase. It regenerates and links out missing thumbnails and should be used for similar purposes.

Querying Indices

curator --query phash FILE_PATH [LIMIT]

--query or -q provides a safe way to query the mono-collection for information. Currently the supported indices are as follows:

  • phash - Ask the perceptual hashing index whether any files in the collection "looks similar" to a particular file. Returning the top N closest matches (default 5).
    • Search performance expected to be logarithmic to how much many files are in your collection.
Clone this wiki locally