Copying a workbook

21 views
Skip to first unread message

mar...@ocasta.com

unread,
Jul 28, 2016, 11:23:34 AM7/28/16
to SlamData-User
What's the best way to copy a workbook from one Mongo instance to another? We want to develop on a local instance and then deploy them to live. I tried the export/import buttons but while a got a file out, it wouldn't import.

John A. De Goes

unread,
Jul 28, 2016, 11:27:42 AM7/28/16
to mar...@ocasta.com, SlamData-User

I don’t think import supports multiple files / directories yet. So you can export as a ZIP, but you may have to upload all the files in the workbook manually to recreate it on the target Mongo instance.
--
John A. De Goes
Follow me on Twitter @jdegoes






On Jul 28, 2016, at 9:23 AM, mar...@ocasta.com wrote:

What's the best way to copy a workbook from one Mongo instance to another? We want to develop on a local instance and then deploy them to live. I tried the export/import buttons but while a got a file out, it wouldn't import.

--
You received this message because you are subscribed to the Google Groups "SlamData-User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slamdata-use...@googlegroups.com.
Visit this group at https://groups.google.com/group/slamdata-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/slamdata-user/0d1421aa-0a30-43e8-9284-303d5b70248d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Patt-Corner

unread,
Sep 7, 2017, 3:39:28 PM9/7/17
to SlamData-User
Not a direct answer, but workbooks appear to be (4.2) represented in the database as a collection -- for instance, a workbook called Test in a previously constructed folder called Slamdata is represented by a collection called 

 SlamData.Test\.slam.index

which typically has a single document describing the workbook 

If you use a tool like Robo3T to visually manage your database, you can then do two very useful things that aren't in the UI as far as I can see:

1. Make a copy of the workbook by copying the collection.  This is very useful because it's very easy to corrupt a complex workflow in the UI and have to start over.  Now you can do interim saves!

2. View the workbook document as a JSON document.  Then insert it in your target DB where you want.  Haven't tried this one, but seems likely.
Reply all
Reply to author
Forward
0 new messages