Update August 2015: It is not much easier to import or export your dashboards, it is the same interface as the Oozie workflows exporter.
Using Hue 3.8 or CDH5.4
20000013 is the id you can see in the URL of the dashboard. If you don't specify -pks it will export all your dashboards.
./build/env/bin/hue dumpdata search.Collection -indent 2 -pks=20000013 -natural > data.json
Using Hue 3.7 or less
./build/env/bin/hue dumpdata search -indent 2 > data.json
then
./build/env/bin/hue loaddata data.json
And that's it, the dashboards with the same IDs will be refreshed with the imported ones!
Note:
If using CM, export this variable in order to point to the correct database:
HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/-hue-HUE_SERVER-id
echo $HUE_CONF_DIR
export HUE_CONF_DIR
Where
Have any questions? Feel free to contact us on hue-user or @gethue!