Basically i am a dba.
I am new to mongodb DB administration.
We are having mongodb ver 5.0.28 and have three collections. i wanted to rename the collections#1 and collections#2 to be old_collections#1, old_collections#2. How to do it. we dont have any node.js developers to help us.
With Compass, you may aggregate when collection with an $out stage to move it under a new name.
You could use mongoexport and mongoimport to download the collection and then upload it under a new name.
Steeve - thanks for the reply. What i did is used mongo compass tool GUI and right clicked on the intended collections (e.g ABC) and did the rename (e.g OLD-ABC) . Will there be , any problem by doing this way.
Note : I didnt do any mongoexport or mongoimport steps.
I was confident, Always i can rename the collections back to its original name . Am I made any mistake any where ?. can you Suggest
I never noticed the Rename collection feature in Compass. Thanks for bringing it to my attention.
You should be good.
You may mark your last post as the solution.