Skip to content

Commit

Permalink
add note about deleting FOXML file to cli option info; update README …
Browse files Browse the repository at this point in the history
…with current cli options
  • Loading branch information
bcail committed Feb 23, 2021
1 parent 53e1e6c commit 4a70b6a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,23 @@ Usage: migration-utils [-chrVx] [--debug] -a=<targetDir>
-a, --target-dir=<targetDir>
Directory where OCFL storage root and supporting
state will be written
-i, --working-dir=<workingDir>
Directory where supporting state will be written
(cached index of datastreams, ...)
-I, --delete-inactive Migrate objects and datastreams in the Inactive
state as deleted. Default: false.
-m, --migration-type=<migrationType>
Type of OCFL objects to migrate to. Choices:
FEDORA_OCFL | PLAIN_OCFL
Default: FEDORA_OCFL
--id-prefix=<idPrefix> Only use this for PLAIN_OCFL migrations: Prefix to
add to PIDs for OCFL object IDs - defaults to
info:fedora/, like Fedora3
Default: info:fedora/
--foxml-file Migrate FOXML file as a whole file, instead of
creating property files. FOXML file will be
migrated, then marked as deleted so it doesn't
show up as an active file.
-l, --limit=<objectLimit> Limit number of objects to be processed.
Default: no limit
-r, --resume Resume from last successfully migrated Fedora 3
Expand All @@ -72,8 +83,6 @@ Usage: migration-utils [-chrVx] [--debug] -a=<targetDir>
of exiting). Disabled by default.
Default: false
-p, --pid-file=<pidFile> PID file listing which Fedora 3 objects to migrate
-i, --index-dir=<indexDir> Directory where cached index of datastreams (will
reuse index if already exists)
-x, --extensions Add file extensions to migrated datastreams based
on mimetype recorded in FOXML
Default: false
Expand All @@ -87,6 +96,14 @@ Usage: migration-utils [-chrVx] [--debug] -a=<targetDir>
-U, --user-uri=<userUri> The username to associate with all of the migrated
resources.
Default: info:fedora/fedoraAdmin
--algorithm=<digestAlgorithm>
The digest algorithm to use in the OCFL objects
created. Either sha256 or sha512
Default: sha512
--no-checksum-validation
Disable validation that datastream content matches
Fedora 3 checksum.
Default: false
--debug Enables debug logging
```

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/fcrepo/migration/PicocliMigrator.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ static F3SourceTypes toType(final String v) {
private String idPrefix;

@Option(names = {"--foxml-file"}, defaultValue = "false", order = 21,
description = "Migrate foxml file as a whole file, instead of creating property files")
description = "Migrate FOXML file as a whole file, instead of creating property files. FOXML file will"
+ " be migrated, then marked as deleted so it doesn't show up as an active file.")
private boolean foxmlFile;

@Option(names = {"--limit", "-l"}, defaultValue = "-1", order = 22,
Expand Down

0 comments on commit 4a70b6a

Please sign in to comment.