How to copy a database from one installation type to another

15 views
Skip to first unread message

zekthe...@gmail.com

unread,
Apr 8, 2017, 1:14:17 AM4/8/17
to kanbanik
I setup a fairly large board using the kanbanik-application and kanbanik-runtime setup... so I have a couple kanbanikdb.0 type of database files.   I was wondering how I would import those into a standard mongo database install that I have running on a slackware server.   Apparently it's not just a matter of copying those files to the /data/db directory.

Tomas Jelinek

unread,
Apr 8, 2017, 1:22:18 AM4/8/17
to zekthe...@gmail.com, kanbanik

You can do it using:
mongodump --out /tmp/backup
copy tha backup over to e.g tmp
on other machine:
mongorestore /tmp/backup

both mongodump and mongorestore are part of the runtime.

good luck,
Tomas


On 8 Apr 2017 7:14 am, <zekthe...@gmail.com> wrote:
I setup a fairly large board using the kanbanik-application and kanbanik-runtime setup... so I have a couple kanbanikdb.0 type of database files.   I was wondering how I would import those into a standard mongo database install that I have running on a slackware server.   Apparently it's not just a matter of copying those files to the /data/db directory.

--
You received this message because you are subscribed to the Google Groups "kanbanik" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanbanik+unsubscribe@googlegroups.com.
To post to this group, send email to kanb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kanbanik/907ca5ac-0a24-4e66-887b-20adfa6db01f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zekthe...@gmail.com

unread,
Apr 8, 2017, 12:30:49 PM4/8/17
to kanbanik, zekthe...@gmail.com, jel...@gmail.com
Worked great!  Thanks!

For future reference and for those looking to do a similar thing:

On the slackware box I simply had to add the mongo-tools package to get mongorestore and on the kanbanik-runtime box mongodump was located in the kanbanik-runtime/bin directory 

On Saturday, April 8, 2017 at 1:22:18 AM UTC-4, Tomas Jelinek wrote:

You can do it using:
mongodump --out /tmp/backup
copy tha backup over to e.g tmp
on other machine:
mongorestore /tmp/backup

both mongodump and mongorestore are part of the runtime.

good luck,
Tomas

On 8 Apr 2017 7:14 am, <zekthe...@gmail.com> wrote:
I setup a fairly large board using the kanbanik-application and kanbanik-runtime setup... so I have a couple kanbanikdb.0 type of database files.   I was wondering how I would import those into a standard mongo database install that I have running on a slackware server.   Apparently it's not just a matter of copying those files to the /data/db directory.

--
You received this message because you are subscribed to the Google Groups "kanbanik" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanbanik+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages