How to add new metadata to archived files
Posted by Andre Kuehnemund, Last modified by Andre Kuehnemund on 26 November 2018 15:11
|
|
It is possible to retroactively add metadata to archived files in the index database. The following is an example of how this can be done.: - My existing 'Default-Archive' index database already contained the default 'description' and a custom 'user_author' metadata fields. - I created three new ones: 'user_color', 'user_year' & 'user_country'. - Please note that when you create custom metadata fields, you will need to enter them as 'color', 'year' & 'country'. P5 will then prefix them in the database with 'user_'. - Next, I archived a folder called '/Users/Shared/NAB_2016/
- In a Terminal window, I executed the following command: - The P5 CLI returned the archive handle for that file: Default-Archive#L1VzZXJzL1NoYXJlZC9OQUJfMjAxNi9QMTEwMDcwMS5KUEc= - Next, I executed the following command: - This time, the P5 CLI returned the name of each custom field along with its newly added contents.: user_color RED user_year 2016 user_country Deutschland - "ArchiveIndex <name> inventory <output file> [<options>]" - "Job <name> inventory <output file> [<options>]" Someone who is good at scripting could probably write a script that first creates a list of all archived files contained in an archive index, or a list of archived files for a particular job (depending on which one of the two commands is being used), then starts a loop that gets the archive handle for each file, then adds the new metadata for each file using the 'setmeta For more information on the various P5 CLI commands mentioned in this article, please refer to the P5 CLI manual available here: http://portal.archiware.com/support/index.php?/Knowledgebase/Article/View/12/0/access-the-cli | |
|