+
+
Regolith Commands
+
+
Shell commands for regolith
+
+usage: regolith [-h]
+ {rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,validate}
+ ...
+
+options:
+ -h, --help show this help message and exit
+
+cmd:
+ {rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,validate}
+ rc prints run control
+ add adds a record to a database and collection
+ ingest ingest many records from a foreign resource into a
+ database
+ store stores a file into the appropriate storage location.
+ app starts up a flask app for inspecting and modifying
+ regolith data.
+ grade starts up a flask app for adding grades to the
+ database.
+ build builds various available targets
+ deploy deploys what was built by regolith
+ email automates emailing
+ classlist updates classlist information from file
+ json-to-yaml Converts files from JSON to YAML
+ yaml-to-json Converts files from YAML to JSON
+ validate Validates db
+
+
+
System Message: ERROR/3 (/Users/huarundong/dbs/regolith/doc/source/commands/index.rst, line 38)
+
Unknown directive type "toctree".
+
+.. toctree::
+ :maxdepth: 1
+
+ add
+ app
+ build
+ classlist
+ deploy
+ email
+ grade
+ ingest
+ fs-to-mongo
+ json-to-yaml
+ rc
+ store
+ validate
+ yaml-to-json
+
+
+
+
+
diff --git a/doc/source/commands/index.rst b/doc/source/commands/index.rst
index d9c0efbfe..94c314dde 100644
--- a/doc/source/commands/index.rst
+++ b/doc/source/commands/index.rst
@@ -7,15 +7,17 @@ Shell commands for regolith
.. code-block:: bash
- usage: regolith [-h]
- {rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,validate}
+ usage: regolith [-h] [--version]
+ {helper,rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,mongo-to-fs,fs-to-mongo,validate}
...
options:
-h, --help show this help message and exit
+ --version
cmd:
- {rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,validate}
+ {helper,rc,add,ingest,store,app,grade,build,deploy,email,classlist,json-to-yaml,yaml-to-json,mongo-to-fs,fs-to-mongo,validate}
+ helper runs an available helper target
rc prints run control
add adds a record to a database and collection
ingest ingest many records from a foreign resource into a
@@ -31,6 +33,17 @@ Shell commands for regolith
classlist updates classlist information from file
json-to-yaml Converts files from JSON to YAML
yaml-to-json Converts files from YAML to JSON
+ mongo-to-fs Backup database from mongodb to filesystem as json.
+ The database will be imported to the destination
+ specified by the 'database':'dst_url' key. For this to
+ work, ensure that the database is included in the
+ dst_url, and that local is set to true.
+ fs-to-mongo Import database from filesystem to mongodb. By
+ default, the database will be import to the local
+ mongodb. The database can also be imported to the
+ destination specified by the 'database':'dst_url' key.
+ For this to work, ensure that the database is included
+ in the dst_url, and that local is set to true.
validate Validates db
@@ -44,9 +57,12 @@ Shell commands for regolith
classlist
deploy
email
+ fs-to-mongo
grade
+ helper
ingest
json-to-yaml
+ mongo-to-fs
rc
store
validate
diff --git a/doc/source/commands/mongo-to-fs.rst b/doc/source/commands/mongo-to-fs.rst
new file mode 100644
index 000000000..a152c44f7
--- /dev/null
+++ b/doc/source/commands/mongo-to-fs.rst
@@ -0,0 +1,12 @@
+mongo-to-fs
+===========
+
+.. code-block:: bash
+
+ usage: regolith mongo-to-fs [-h] [--host HOST]
+
+ options:
+ -h, --help show this help message and exit
+ --host HOST Specifies a resolvable hostname for the mongod to which to
+ connect. By default, the mongoexport attempts to connect to a
+ MongoDB instance running on the localhost on port number 27017.