Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Reports
    • Case Studies
    • Whitepapers
    • Blog
    • Testimonials
    • Community
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Career
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • My License
  • Download
search

Studio 3T Knowledge Base

  • Documentation
  • Tutorials
  • Workshops
Take the fastest route to learning MongoDB. Cover the basics in two hours with MongoDB 101, no registration required.
Start the free course

How to Copy MongoDB Databases Across Servers

Posted on: 04/09/2019 (last updated: 04/08/2021) by Paul Rebar

Need a fast way to copy MongoDB databases across connections?  Studio 3T has you covered.

Studio 3T’s built-in copy-paste feature allows you to transfer a MongoDB database from one server to another with ease.

Haven’t downloaded Studio 3T yet? Get the latest version here, and let’s get started.

Just need to copy a collection to another database? Here’s how.

Just need to copy a collection to another database? Here’s how. 

Open Target Connection

In this example we’ve already opened the source connection we would like to copy from: Connection 1.  We now need to open the target connection.  To start, open the Connection Manager in the upper right corner of the app and select or import the target connection.  In this case it’s Connection 2.

open intended connection

Copy MongoDB Database

Next, right-click the source database you would like to copy from its source connection in the Connection Tree and select Copy All Collections/Views/Buckets. 

In this case, it’s the database Pubs within Connection 1.

copy database from original connection

You can also simply press Ctrl-C.

Transfer MongoDB Database

Right-click your target connection in the Connection Tree and select Add Database…

In the pop-up window type the name of the source database you copied from the source connection and press OK.

create empty database in intended connection

It’s important to note that both connections have to be open while copy-pasting databases. This is because databases can’t be copied directly – their content has to be transferred from one to another.

Right-click the empty duplicate database in the target connection and select Paste Collections/Views/Buckets.

You can also press Ctrl-V.

The Operations Window at the bottom left corner of the app will display the progress of the copy job and indicate when it’s finished.

refer to the Operations Window

(Optional) Drop Source MongoDB Database

Finally, if you’d like to remove the source database from the source connection simply right click the database and select Drop Database.  You can also press the Delete key.

drop original database

And that’s all there is to it!


Take advantage of our other handy copy and paste features in Studio 3T:

  • Copy and paste MongoDB documents across databases
  • Copy and paste MongoDB connection strings to connect to your database quickly
  • Copy and paste MongoDB collections across databases


How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

Paul Rebar

Emerging from the frozen wastes of Canada, Paul is excited to help make databases more approachable and intuitive for everyone.

Article navigation

Related articles

  • The License Manager and Proxy Servers
  • The MongoDB Basics: Databases, Collections & Documents
  • How to Copy a MongoDB Collection to Another Database
  • Copy MongoDB Query Results to CSV, Excel & Google Sheets
  • How to Copy and Paste MongoDB Documents

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • Case Studies
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2022 3T Software Labs GmbH. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum
When you click "Accept", you are agreeing to cookies being on your device. They may improve site navigation, site usage analysis, or the relevance of messages. It is up to you which cookies are enabled. Read our Privacy Policy.
Manage cookies
Accept
✕

Privacy Preference Center

A cookie is a small file of letters and numbers that is downloaded on to your computer when you visit a website. Cookies are used by many websites and can do a number of things, eg remembering your preferences, recording what you have put in your shopping basket, and counting the number of people looking at a website. In the form below you can choose which cookies, except for essential cookies, to allow or disable.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected