Loading Records from a File¶
The bootstrap scripts named manage_*.py look for JSON files in directories
under bootstrap
corresponding to the collection they manage. The JSON files
can be individual records, or a JSON list of multiple records.
Here’s a worked example to illustrate the process”
Bootstrapping a File Record¶
Write a JSON file resembling this one to bootstrap/files/file555.json
. The
file is written to conform to the file schema.
$ python -m bootstrap.manage_files auto -localhost
manage_files.py.INFO: Registered /uploads/tacc/example/555.txt
Now, if you search your local files
collection for a record with the
name
, you will get back a record resembling the following:
More detail and examples is forthcoming but hopefully this is enough to get a flavor for what the management tools allow one to accomplish.