Skip to content

CLI_examples

David Cirella edited this page Apr 24, 2023 · 1 revision

yesc packaging examples

ArchivesSpace syncing

Empty folder (SO)

Create an empty structural object, with ArchivesSpace link. The resulting SIP will ingest and link to the specified archival object. The link workflow will create an ArchivesSpace digital object linked to this SO. Information object (IO) SIPs can be ingested to the linked SO.

$ python3 yesc.py -i '/path/to/files/[Preservica] empty folder'/ -o ~/Desktop/yes_tst/ -e -ao '/repositories/7/archival_objects/3257187'

Multi-representation packages

Named folders

yesc can create multi-representation Information Object packages, using named folders to group the files for each representation. These named folders must conform to the following: preservica_preservation, preservica_presentation1, preservica_presentation2

$ python3 yesc.py -i /path/to/files/item_folder -o ~/Desktop -r -iot 'Information Object Title' -s open -e

Using sipconfig

A sipconfig file (sipconfig examples) that conforms to Preservica sipconfig schema.

Use the -sc or --sipconfig options to list the path to a sipconfig.xml (sample) to specify which subfolders get packaged as each representation type. -sc or --sipconfig must be used in conjunction with -r or --representations. -p or --parent, and -iot or --iotitle

$ python3 yesc.py -i /path/to/files/item_folder -o ~/Desktop  -e -p destination-parent-folder-uuid -iot multi-representation-IO-name -r -sc /path/to/files//sipconfig/MSSA-AV-3-Sipconfigpath.xml

Clone this wiki locally