Installation System Preparation:1, software preparation VMware workstation14, Vm14key, CentOS system Image SecureCRTHttp://sw.bos.baidu.com/sw-search-sp/software/39fba669e1b70/VMware-workstation-full-14.1.1.28517.exe2. CentOS OS imageHttp://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso3. BIOS Open VTPress and hold the corresponding key when booting into the BIOS: Assembling machine to motherboard, ASUS Press F8, Intel Press F12, other brands press ESC, F11 or F12; not
Label:MongoDB database maintenance is inseparable from the necessary backup, recovery operations, and generally does not go wrong, so we use the most of the time using backup and recovery operations.
The principle of mongodump.exe backup is to get the current server snapshot through a single query and write the
default)-U [--username] arg usernam e-p [--password] arg password--dbpath arg directly access Mongod database files in the given path, Instead of connecting to a Mongod server-needs to lock the data directory, so cannot be used If a mongod is currently accessing the same path--directoryperdb if dbpath specified, each db was in a separate Directory--journal enable journaling-d [--DB] arg database to use-c [--collection] Arg collection To use (some commands)-o [--out]
MongoDB database maintenance operations: Connection amp; User Management amp; backup, mongodb DatabaseStart/Close the mongodb ServiceStart the serviceThe mongodb service can be started directly by specifying the startup parameter or by using the configuration file ;?
# Spe
mongodump.exe backup is to get the current server snapshot through a query and write the snapshot into the disk. Therefore, this method is not saved in real time, because after obtaining the snapshot, the server also has data writing. To ensure backup security, we can also
The principle of mongodump.exe backup is to get the current server snapshot through a single query. The snapshot is written to disk, so it is not stored in real time, because the server will have data writes after the snapshot is taken, and in order to secure the backup, we
Configure MongoDB configuration items in the configuration file and back up and restore the database, mongodb backup and recoveryI. mongoDB command line startup option Configuration
When mongodb is started using the command line, we can select some options to change the conf
This article mainly introduces the way of MongoDB backup and the method of recovery.MongoDB will all the data exist under the Data Directory folder, the default is C:\data\db, we can also be configured by DBPath from. If it's just a simple backup, we just need to copy the folder. In this case we need to shut down the server and avoid the data from being out of sy
MongoDB import, export, backup, recovery, user authorization (4), mongodb ImportV. MongoDB import, export, backup, recovery, and user authorizationI. Data export and Data ImportAs a DBA (Administrator), you often need to import and export data. The following describes the ut
versions are compatible (most of the time Yes).
Although JSON has a good cross-version commonality, it retains only the data part, not the index, the account and other basic information. You should pay attention when using.
In short, these two sets of tools in the actual use of each have advantages, should be based on the application scenario selection (as if not said). But strictly speaking, the main role of Mongoexport/mongoimport is to import/export data when used, not a real
Tags: http io os using SP data on CTI ADMongoDB data dumpTo create a backup database in MongoDB, you should use the Mongodump command. This command dumps all data from the server to the dump directory. There are many options available through which you can limit the amount of data or create a backup of your remote server.Grammar:The basic syntax for the Mongodump
Reference Official Documentation: MongoDB Backup MethodsA backup restore was made using a snapshot of the operating system, and the restore did not succeed after the backup was successful (refer to: Backup and restore with Filesys
A brief introduction: Today happened to write a backup script about MongoDB, share the nextTwo-Frontier: This script applies to single-instance and replica sets, not for Shard clustersThree contents:#!/bin/shUser=password=port=ip= '/sbin/ifconfig eth0 | grep ' inet addr ' | Cut-d:-f2 | awk ' {print '} ' | Cut-d '. '-f ' 3,4 'date1= ' Date +%y%m%d%h 'date2= ' Date +%y%m 'Backupdir1= "/
MongoDB basic (5) backup restoration and Export Import
The original snapshot of the operating system is used for Backup and restoration. After the Backup is successful, the restoration fails (see Backup and Restore with Filesystem
Tags: mongodbMongoDB Data BackupIn MongoDB we use the Mongodump command to back up MongoDB data. The command can export all data to the specified directory. The Mongodump command allows you to specify the server to which the exported data can be dumped by parameter.GrammarThe mongodump command script syntax is as follows: >---o dbdirectory
- H:MONGDB the server address, for example: 127.0.0.1, yo
Backing up and recovering data is important for managing any data storage system.1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, the direct copyMongoDB stores all the data in the data directory, the default is/data/db/(under Windows C:\data\db\), when starting MongoDB can also use--dbpath to specify ou
MongoDB data file backup and recovery backup and recovery data are important for managing any data storage system. 1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, direct copy
)--journal enable journaling (relevant only ifDBPath specified)-d [--DB] arg database to use-c [--collection] arg collection to use (some commands)-O [--out] arg (=dump) output directory or "-" for stdout-Q [--query] arg JSON query--oplog use Oplog for Point-in-timeSnapshotting--repair try to recover a crashed database--forcetablescan Force a table scan$snapshot)Export Database[Email protected] ~]# mongodump-h 127.0.0.1--port 30216-d test-uxxxx-pxxxxx
Tags: style color os ar strong file Data div spMongoDB data file backup and recovery backup and recovery data are important for managing any data storage system. 1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, direct copy www.2cto.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.