@ben Have you tried running bin/caUtils import-media help ? This is the output:
Help for "import-media":
Import media from a directory or directory tree.
Options for import-media are:
--source (-s) Data to import. For files provide the path; for database, OAI and other
non-file sources provide a URL.
--username (-u) User name of user to log import against.
--log (-l) Path to directory in which to log import details. If not set no logs will
be recorded.
--log-level (-d) Logging threshold. Possible values are, in ascending order of important:
DEBUG, INFO, NOTICE, WARN, ERR, CRIT, ALERT. Default is INFO.
--add-to-set (-S) Optional identifier of set to add all imported items to.
--log-to-tmp-directory-as-fallback Use the system temporary directory for the import log if the application
logging directory is not writable. Default report an error if the
application log directory is not writeable.
--include-subdirectories Process media in sub-directories. Default is false.
--match-type Sets how match between media and target record identifier is made. Valid
values are: STARTS, ENDS, CONTAINS, EXACT. Default is EXACT.
--match-mode Determines how matches are made between media and records. Valid values are
DIRECTORY_NAME, FILE_AND_DIRECTORY_NAMES, FILE_NAME. Set to DIRECTORY_NAME
to match media directory names to target record identifiers; to
FILE_AND_DIRECTORY_NAMES to match on both file and directory names; to
FILE_NAME to match only on file names. Default is FILE_NAME.
--import-mode Determines if target records are created for media that do not match
existing target records. Set to TRY_TO_MATCH to create new target records
when no match is found. Set to ALWAYS_MATCH to only import media for
existing records. Default is TRY_TO_MATCH.
--allow-duplicate-media Import media even if it already exists in CollectiveAccess. Default is
false – skip import of duplicate media.
--import-target Table name of record to import media into. Should be a valid
representation-taking table such as ca_objects, ca_entities,
ca_occurrences, ca_places, etc. Default is ca_objects.
--import-target-type (-t)Type to use for all newly created target records. Default is the first type
in the target's type list.
--import-target-idno (-i)Identifier to use for all newly created target records.
--import-target-idno-mode (-m)Sets how identifiers of newly created target records are set. Valid values
are AUTO, FILENAME, FILENAME_NO_EXT, DIRECTORY_AND_FILENAME. Set to AUTO to
use an identifier calculated according to system numbering settings; set to
FILENAME to use the file name as identifier; set to FILENAME_NO_EXT to use
the file name stripped of extension as the identifier; use
DIRECTORY_AND_FILENAME to set the identifer to the directory name and file
name with extension. Default is AUTO.
--import-target-access (-a)Set access for newly created target records. Possible values are 0 (not
accessible to public), 1 (accessible to public), 2 (restricted public
access). Default is 0 (not accessible to public).
--import-target-status (-w)Set status for newly created target records. Possible values are 0 (new), 1
(editing in progress), 2 (editing complete), 3 (review in progress), 4
(completed). Default is 0 (new).
--representation-type (-T)Type to use for all newly created representations. Possible values are
after_treatment (Image AT), analysis (Analysis), archical (Archival),
before_treatment (Image BT), collection_item (Conservation),
collection_management (Collection Management), diagram (Diagram),
during_treatment (Image DT), non_treatment (Image Non-Treatment), other
(Contextual), primary (Primary), publication (Publication). Default is .
--representation-idno (-I)Identifier to use for all newly created representation records.
--representation-idno-mode (-M)Sets how identifiers of newly created representations are set. Valid values
are AUTO, FILENAME, FILENAME_NO_EXT, DIRECTORY_AND_FILENAME. Set to AUTO to
use an identifier calculated according to system numbering settings; set to
FILENAME to use the file name as identifier; set to FILENAME_NO_EXT to use
the file name stripped of extension as the identifier; use
DIRECTORY_AND_FILENAME to set the identifer to the directory name and file
name with extension. Default is AUTO.
--representation-access (-A)Set access for newly created representations. Possible values are 0 (not
accessible to public), 1 (accessible to public), 2 (restricted public
access). Default is 0 (not accessible to public).
--representation-status (-W)Set status for newly created representations. Possible values are 0 (new),
1 (editing in progress), 2 (editing complete), 3 (review in progress), 4
(completed). Default is 0 (new).
--remove-media-on-import (-R)Remove media from directory after it has been successfully imported.
Default is false.