Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange 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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • Knowledge Center
  • :
  • Building Automation Knowledge Base
  • :
  • Backup and Restore MongoDB for Windows for Access Expert On-Premise
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation How-to videos
    • Ask Exchange
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
  • Support
    • User Guide
    • Leaderboard
    • Releases Notes
How can we help?
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: 
49242members
Join Now
242456posts
Join Now

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

Back to Building Automation Knowledge Base
Options
  • Article History
  • Subscribe to RSS Feed
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
0 Likes
1577 Views
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 ‎2019-10-07 08:58 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:
  • 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)
Contributors
  • JonGreen
    JonGreen
  • Alan_Wood
    Alan_Wood
  • DavidFisher
    DavidFisher
  • Cody_Failinger
    Cody_Failinger
  • Taylor_Leach
    Taylor_Leach
  • Jonathan
    Jonathan
  • AbeMeran
    AbeMeran
  • Product_Support
    Product_Support
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric