WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Script to Restore From Backup #102

Closed ric-evans closed 3 years ago

ric-evans commented 3 years ago

Added a script to restore FC entries via their JSON backups.

Restores FC entries from a JSON file (new-line delimited). The contents of each entry is not altered. However, these keys are removed prior to sending to the File Catalog: ["meta_modify_date", "_id"]. Each entry must include a uuid field.

First try to PUT with existing uuid. If that fails (404), then POST with uuid.

You're on your own for any field alterations.

lgtm-com[bot] commented 3 years ago

This pull request introduces 1 alert when merging c8d184ace1cd41ec23894c47293cc40f21d72b77 into 956d6b4e288f9d621a196ab6a94f3377a79ebec7 - view on LGTM.com

new alerts:

ric-evans commented 3 years ago

closes https://github.com/WIPACrepo/file_catalog/issues/98