MongoDB Standalone:To back up all libraries:Mongodump--host 10.10.7.33:27019--gzip--OUT/HOME/MONGODB/0415_BFTo back up the specified library:Mongodump--host 10.10.10.251:21100-d dbname--gzip-out/home/mongodb/bjdata2Restore recovery:Mongorestore--host Replica backup of the set cluster:Backup Data set:mongodump -h"ttlsa/
relatively simple, and we introduce the second scenario, which takes the form of a command
To facilitate testing, we first delete the database
Entering commands in the MongoDB shell
installed, would zero-out data files
MongoDB shell version:3.0.4
connecting to:test
> Use Runoob
swit Ched to DB Runoob
>
> Db.collections
runoob.collections
> Show Collections
col
Flatjson
Leveljson
postcollection
posts
runoob
Tags: using strong file Data SP on C R databaseMongoDB database is also inseparable from the necessary maintenance, such as backup, recovery, import, export.In fact, backup and recovery is easier than import and export, and generally does not make mistakes, so most of the time using backup and recovery operations.1. Back Up MongoDBMongodump-h ruiyip-d Dataname-o/
Tags: mon instance dump--database God images ack span1.mongodb BackupThe Mongodump command can use a list of available options.This command backs up only the specified database, in the specified path
Grammar
Description
Example
Mongodump--host host_name--port port_number
This command will specify the Mongod instance to back up all the databases.
Mongodump--host yiibai.com--port 27017
M
Label:MongoDB data backup and restore is mainly divided into two kinds, one is for the library of Mongodump and Mongorestore, one is for the table in the library mongoexport and Mongoimport. One, Mongodump backup database 1, Common command grid Mongodump-h IP--port Port-u user name-p password-d database-o file exists path If there are no users, you can remove-u a
user--type csv--headerline--fileUser_csv.datConnected to:127.0.0.1Imported 3 objects[Email protected] bin]#Parameter description:-type indicates the file format to import-headerline The first row is not imported because the first row is a column name-file indicates the file path to importAttention:CSV format is good, mainstream database support export to CSV format, so this format is very beneficial to heterogeneous data migrationData backup Mongodum
Five: MongoDB import, export, backup, restore, user authorizationOne: Data export, data importAs a DBA (administrator), you often encounter the need to import and export data, as described in the following utilities (bring-your-own):1: Data import MongoexportExport files in CSV format./mongoexport-d test-c User1-o/tmp/user1.out--Specify the location and filename
Company database migration, so add a bit of knowledge:1 Import and export of collectionsCommand-line help Mongoexport--helpExportExport Newsserver database under News collectionmongoexport-d newsserver-c News-o D:\data\news.jsonSame as above, but specify only partial fields (Id,title)mongoexport-d newsserver-c news-f _id,title-o D:\data\news.jsonIf you need user rights authentication, you need to specify the user and password,-u (--user) followed by the set user name, the password set by-pMongoe
Tags: MONGO backup restoreMongoDB 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:>mongodump-h dbhost-d Dbname-o
-collection Note the place
Mongoimport before the import, the new database does not have the same XX table can be imported successfully;
Mongoexport and Mongoimport The order of each parameter input is not strict;
For a replica set, the data export of Mongoexport can be a primary node in a replica set, or it can be a secondary node;
For a replica set, the data import of Mongoimport must be a primary node;
For the export of large data volume, there is no production pro
For the system, we can have a lot of ways to back up (restore) the system or file, the reason is to do the backup, is to be in the system or file damage, the timely recovery, reduce the loss to a minimum. Of course, the importance of backup is important for enterprise servers. Let's discuss in detail today how to use dump and
In a SQL Server database, backup and restore are only performed on the server, the backed up data files are on the server, and the restored data files are only available on the server, when the SQL Server client is started on a non-server machine. The client can also be used to back up and restore the database, but this operation is essentially on the server, the
Tags: full backup incremental backup data restoreScenario: Sunday full Backup, Monday, Tuesday incremental backup, Wednesday problems, found after a few minutes;Installation of the database:
yum install mariadb-server-y
systemctl start mariadb
yum Install percona-xtrabackup-24-2.4.9-1.el7.x86_64.rpm
Default Instant i
Differential backup: Back up data based on full backup. Because the tar command cannot implement differential backup, this article explains how to use the dump and restore commands. Of course, the dump and restore commands can also implement full
WIN2003
IIS--> Right---> All Tasks--> backup/Restore Configuration
After backup, the files are saved in the%windir%\system32\inetsrv\metaback directory ...
backing up IIS settingsIIS itself has the ability to back up and restore IIS settings. You need to back up IIS before you res
1. If the recovery is different we can use itools to try to recover, if not installed itools we can go to the official download, enter and then click the "one button download" button (Note that the computer must install the itunes tool before installing the Itools tool OH)
2. After the computer has been installed itools we open, and then enter the following figure to click the "toolbox" option
3. Then we click on the "ITunes Backup management" o
Windows IIS has a very "pit Dad" backup restore feature, unlike most backup restores, this service does not support backup restores between different computers by default, and if users reload windows, they are prompted with an "invalid signature" even if they back up the related files for IIS. Causes this IIS to not re
Tags: http hive text Backup also originally came best database backup oneTransfer from LWCCC, SQLserver2008 database backup and restore issues (restore is a must have a full backup)First of all, I want to explain that you have to
Tags: blog http ar using SP file Data 2014 problemFirst of all, I want to explain that you must have a full database backup, the following restore tutorial, only useful, if other problems, please search other Daniel's solution, this method is only suitable for beginners.This connection is the webmaster adult's unusual recovery method, has the question to study http://www.cnblogs.com/dudu/archive/2011/10/15/
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.