Home Database Mysql Tutorial mongodb备份与恢复

mongodb备份与恢复

Jun 07, 2016 pm 04:32 PM
bin mongodb backup recover

T:\mongodb\bin\mongodump.exe -h 127.0.0.1 -d BRM_Message -u saadmin -p L123 -o "d:\backup\mongobak\%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%"mongorestore -h 127.0.0.1 -d BRM_Message --directoryperdb /backup/mongobak/3/ -u saadmin -p L12

T:\mongodb\bin\mongodump.exe -h 127.0.0.1 -d BRM_Message  -u saadmin -p L123 -o "d:\backup\mongobak\%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%"
mongorestore -h 127.0.0.1 -d BRM_Message --directoryperdb /backup/mongobak/3/  -u saadmin -p L123
Copy after login

Backup and Restore with MongoDB Tools

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use MySQL backup and restore in PHP? How to use MySQL backup and restore in PHP? Jun 03, 2024 pm 12:19 PM

Backing up and restoring a MySQL database in PHP can be achieved by following these steps: Back up the database: Use the mysqldump command to dump the database into a SQL file. Restore database: Use the mysql command to restore the database from SQL files.

What is the use of net4.0 What is the use of net4.0 May 10, 2024 am 01:09 AM

.NET 4.0 is used to create a variety of applications and it provides application developers with rich features including: object-oriented programming, flexibility, powerful architecture, cloud computing integration, performance optimization, extensive libraries, security, Scalability, data access, and mobile development support.

How to configure MongoDB automatic expansion on Debian How to configure MongoDB automatic expansion on Debian Apr 02, 2025 am 07:36 AM

This article introduces how to configure MongoDB on Debian system to achieve automatic expansion. The main steps include setting up the MongoDB replica set and disk space monitoring. 1. MongoDB installation First, make sure that MongoDB is installed on the Debian system. Install using the following command: sudoaptupdatesudoaptinstall-ymongodb-org 2. Configuring MongoDB replica set MongoDB replica set ensures high availability and data redundancy, which is the basis for achieving automatic capacity expansion. Start MongoDB service: sudosystemctlstartmongodsudosys

How to ensure high availability of MongoDB on Debian How to ensure high availability of MongoDB on Debian Apr 02, 2025 am 07:21 AM

This article describes how to build a highly available MongoDB database on a Debian system. We will explore multiple ways to ensure data security and services continue to operate. Key strategy: ReplicaSet: ReplicaSet: Use replicasets to achieve data redundancy and automatic failover. When a master node fails, the replica set will automatically elect a new master node to ensure the continuous availability of the service. Data backup and recovery: Regularly use the mongodump command to backup the database and formulate effective recovery strategies to deal with the risk of data loss. Monitoring and Alarms: Deploy monitoring tools (such as Prometheus, Grafana) to monitor the running status of MongoDB in real time, and

The latest rankings of the top 10 exchanges in the global currency circle The latest rankings of the top 10 exchanges in the global currency circle Feb 21, 2025 pm 10:06 PM

The top ten cryptocurrency exchanges in the world are: 1. Binance, 2.Coinbase, 3.FTX, 4.KuCoin, 5.Crypto.com, 6.Huobi, 7.Gate.io, 8.Kraken, 9.Gemini , 10.Bitfinex, they provide a wide range of cryptocurrency trading pairs, derivative contracts and DeFi products to meet the needs of different users.

Will the tokens dropped by Redstone (RED) be unlocked immediately? Will the tokens dropped by Redstone (RED) be unlocked immediately? Mar 04, 2025 pm 06:18 PM

Redstone (RED) airdrop has sparked heated discussions, and its token unlocking mechanism has become the focus of investors. This article analyzes the Redstone project in depth, an innovative multi-chain oracle that supports more than 70 blockchains and covers more than 1,250 assets, and has received multiple rounds of financing. The total amount of RED tokens is 1 billion, with airdrop accounting for only 0.7%, and only partially unlocked during TGE, with only 28% of the initial circulation, and the remaining 72% will be gradually unlocked within four years. With its strong cross-chain capabilities, extensive asset coverage, ultra-high reliability and advanced modular architecture, Redstone has rapidly emerged in the market and has become the second largest multi-chain oracle provider. BNB holders can participate in RED rewards through Binance Launchpool

Navicat's method to view MongoDB database password Navicat's method to view MongoDB database password Apr 08, 2025 pm 09:39 PM

It is impossible to view MongoDB password directly through Navicat because it is stored as hash values. How to retrieve lost passwords: 1. Reset passwords; 2. Check configuration files (may contain hash values); 3. Check codes (may hardcode passwords).

​Redstone (RED) How are airdropped tokens withdrawn and used? ​Redstone (RED) How are airdropped tokens withdrawn and used? Mar 04, 2025 pm 06:12 PM

How to withdraw and use Redstone (RED) airdrop tokens? This article explains the background, technology and market advantages of Redstone, including its strong cross-chain interaction capabilities, extensive asset coverage and excellent reliability. Users who obtain RED airdrops can confirm the receipt by logging into the platform participating in the airdrop (such as Binance) and selecting a suitable encrypted storage package (such as MetaMask) for extraction. The use of RED tokens includes liquidity mining and lending in DeFi projects, as well as long-term investment and collection.

See all articles