When an (invalid) todb argument that contains a dot is provided, copyDatabase just ignores everything that comes after the dot, and copy to the destination database instead of failing.
e.g. something like this
> db.copyDatabase("test", "local.whatever", "localhost")
will return:
{ "ok" : 1 }
and the content of tests will be copied in "local" database.