Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Backup and Restore MongoDB for Windows for Access Expert On-Premise

Building Automation Knowledge Base

Schneider Electric Building Automation Knowledge Base is a self-service resource to answer all your questions about EcoStruxure Building suite, Andover Continuum, Satchwell, TAC…

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Building Automation Knowledge Base
  • Backup and Restore MongoDB for Windows for Access Expert On-Premise
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close

Related Forums

  • Intelligent Devices Forum

Previous Next
Contributors
  • JonGreen
    JonGreen
  • Alan_Wood
    Alan_Wood
  • DavidFisher
    DavidFisher
  • Cody_Failinger
    Cody_Failinger
  • chris_clerc
    chris_clerc
  • Jonathan
    Jonathan
  • Taylor_Leach
    Taylor_Leach
  • AbeMeran
    AbeMeran
  • Product_Support
    Product_Support

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Building Automation Knowledge Base
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
0 Likes
4246 Views

Link copied. Please paste this link to share this article on your social media post.

Trying to translate this page to your language?
Select your language from the translate dropdown in the upper right. arrow
Translate to: English
  • (Français) French
  • (Deutsche) German
  • (Italiano) Italian
  • (Português) Portuguese
  • (Русский) Russian
  • (Español) Spanish

Backup and Restore MongoDB for Windows for Access Expert On-Premise

Picard Product_Support
‎2018-09-10 07:56 AM

Last Updated: Administrator DavidFisher Administrator ‎2023-09-11 01:50 AM

Issue

Access Expert On-Premise setup needs procedures and tools to backup and restore the database

Product Line

Access Expert

Environment

  • Access Expert Premise Software V3

  • MongoDB

Cause

The procedures for backing up and restoring the MongoDB is documented online at the link below.

https://docs.mongodb.com/manual/tutorial/backup-and-restore-tools/

However, these instructions do not outline how to use the commands (mongodump and mongorestore) within the Windows OS environment using specific examples.

Resolution

The following procedures are designed to fill in the gap for Access Expert administrators who need to do manual MongoDB Backup and Restore.

These procedures assume that Access Expert V3 has been installed and is functioning normally.

You will need 2 separate Command Prompts, run as Administrator, open for these procedures.

  1. Mongo DOS Shell to attach to and run commands within MongoDB environment
  2. Standard DOS Shell to run the Mongo backup and restore commands

MongoDB Backup

  1. Ensure MongoDB service is running (Start> Run> services.msc)
  2. Open a Command Prompt as Administrator (referred to as the Mongo DOS Shell)
    Type mongo(command)
    MongoCommand.jpg
    Type show dbs (command) - shown above, to give a list of the dbs available)
    If the MongoDB service is "Running," but the client cannot connect when typing mongo, it's probably because the path to the mongo bin folder hasn't been added to the PC's environment.
    To Add a local path locations variable to a PC environment
    https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v%3Doff...
    Ex. C:\Program Files\MongoDB\Server\3.6\bin (This will vary based on the version of Mongo)
    EnvironmentVariables.jpg
  3. Open another Command Prompt as Administrator (Standard DOS Shell)
    Use the CD command to navigate to where you would like the backup files to be created
    Ex. C:\Data
    mongodump (command)
    MongodumpCommand.jpg

The mongodump command creates the dump folder with admin, Keep, Signalr subfolders

dumpFolders.jpg

MongoDB Restore

  1. In the (Mongo DOS Shell) Prompt
    show dbs (command)
    showDBsCommand.jpg
  2. use Keep (command) (Case sensitive)
  3. db.dropDatabase() (command)
    db.dropDatabaseCommand.jpg
    KeepDBdropped.jpg
  4. Use the Command Prompt as Administrator (Standard DOS Shell)
    mongorestore (command)
    MongoRestoreCommand.jpg
    The window should indicate "Finished Restoring Keep.Events," "done" and RESTORE COMPLETE

If there are “E11000 duplicate key error collection” Keep.Events errors, it’s because the collection events are already in the folder and need to be deleted first.

E11000Errors.jpg

 

Steps to correct the E11000 duplicate issue: (Stop the service, delete and recreate the DB folder, restart service)

  1. Right-click on the MongoDB service and Stop (you can’t delete files while the service is running)
    MongoDBserviceStop.jpg
  2. Delete C:\Data\db folder (not the Data, only DB)
    DeleteDataDb1.jpg
    DeleteDataDb2.jpg
  3. MANUALLY CREATE THE DB FOLDER - Right Click > New Folder and name it DB
    DeleteDataDb1.jpg
  4. Restart the MongoDB service - this creates the necessary files in the DB folder
    MongoServiceFileCreation.jpg
  5. Once these steps have been done, rerun the mongorestore command
    mongorestore (command)
    MongoRestoreCommand.jpg
  6. Verify that users can log into Access Expert with this database
Labels (1)
Labels:
  • EcoStruxure Access Expert
Tags (8)
  • Find more articles tagged with:
  • 19821
  • Access Expert
  • AlanWood19
  • backup
  • mongodb
  • on-premise
  • onpremise
  • restore
Was this article helpful? Yes No
100% helpful (2/2)

Link copied. Please paste this link to share this article on your social media post.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of