[SERVER-5248] CLONE - Mongodump error: "error: boost::filesystem::create_directory: The filename, directory name, or volume label syntax is incorrect" while exporting collection "*" Created: 08/Mar/12  Updated: 15/Aug/12  Resolved: 21/Mar/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Thomas DeMille Assignee: Brandon Diamond
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Duplicate
duplicates SERVER-4122 Validate database and collection name... Closed
Operating System: ALL
Participants:

 Description   

When I try to mongodump all databases, I get the following error:
error: boost::filesystem::create_directory: The filename, directory name, or volume label syntax is incorrect: "c:\Backup*"

Unfortunately, this error also terminates the dump process. When I list the databases in my server, there is indeed a database named "*" but I am not able to interact with it in any meaningful way.

What do you recommend I try next?



 Comments   
Comment by Mark Waschkowski [ 21/Mar/12 ]

I ran into the same issue as well on a windows server...

Comment by Yonggang Du [ 18/Mar/12 ]

I met this issue either.
Each time when I use 'mysqldump' without any parameter, this error will happen, while I do not have the database named "*"

The version I'm using is mongodb-2.0.2

Comment by Thomas DeMille [ 08/Mar/12 ]

I'm seeing the same thing:

> show dbs

  • (empty)
    BtSearchCache 3.9521484375GB
    local (empty)

> db.getSiblingDB("*")
*

> db.getSiblingDB("*").dropDatabase()

{ "dropped" : "*", "ok" : 1 }

> show dbs

BtSearchCache 3.9521484375GB
local (empty)
> exit
bye

C:\Program Files\mongodb-win32-x86_64-2.0.1\bin>mongo
MongoDB shell version: 2.0.1
connecting to: test
> show dbs
BtSearchCache 3.9521484375GB
local (empty)
> exit
bye

C:\Program Files\mongodb-win32-x86_64-2.0.1\bin>mongodump
connected to: 127.0.0.1
all dbs
DATABASE: BtSearchCache to dump/BtSearchCache
BtSearchCache.system.indexes to dump/BtSearchCache/system.indexes.bson
207 objects
BtSearchCache.Board_1 to dump/BtSearchCache/Board_1.bson
16677 objects
......
BtSearchCache.Board_21 to dump/BtSearchCache/Board_21.bson
34200/101092 33%
46800/101092 46%
101092 objects
DATABASE: * to dump/*
error: boost::filesystem::create_directory: The filename, directory name, or volume label syntax is incorrect: "dump*"

Generated at Thu Feb 08 03:08:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.