dokku-mongo export produces an invalid tar file

June 13, 2018 3.7k views
Dokku MongoDB Ubuntu 16.04

I'm having the same problem as described in this issue on GitHub. The dokku-mongo command to export a dump of the database produces an invalid tar file. Example here:

$ ssh
$ dokku mongo:export database > backup.tar
$ tar -xfv backup.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
1 comment
  • My goal is to export the data from dokku-mongo on my staging server and import it into a local instance of mongo running on localhost (OSX). To do that, I believe I need to be able to export a valid .bson file, which is what I'm guessing the .tar from dokku mongo:export should give me.

1 Answer

I have the same problem
tar file is generated but it is empty ...

If anybody can help ;)


Have another answer? Share your knowledge.