<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>なんとなく技術系メモブログ &#187; MongoDB</title>
	<atom:link href="http://blog.monoware.co.jp/archives/category/mongodb/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.monoware.co.jp</link>
	<description></description>
	<lastBuildDate>Tue, 08 Apr 2014 01:54:35 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>【Linux】【MongoDB】 MongoDBでのバックアップとリストアについて</title>
		<link>http://blog.monoware.co.jp/archives/23</link>
		<comments>http://blog.monoware.co.jp/archives/23#comments</comments>
		<pubDate>Tue, 08 Apr 2014 01:40:15 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=23</guid>
		<description><![CDATA[mongodump/mongorestoreコマンドを用いてMongoDBをバックアップとリストアする。 ・localhostのtest_dbをバックアップする mongodump --host localhost --db test_db ・localhostのtest_dbにあるtest_collectionをバックアップする mongodump --host localhost --db test_db --collection test_collection ・localhostのtest_dbにあるtest_collectionのユーザ&#8221;akio&#8221;をクエリ指定してバックアップする mongodump --host localhost --db test_db --collection test_collection -q {userName : 'akio'} ・バックアップしたtest_dbを全てリストアする mongorestore --host localhost --db test_db ./dump/test_db ・バックアップしたtest_dbのtest_collectionをリストアする mongorestore --host localhost --db test_db --collection test_collection ./dump/test_db/test_collection.bson]]></description>
			<content:encoded><![CDATA[<p>mongodump/mongorestoreコマンドを用いてMongoDBをバックアップとリストアする。</p>
<p>・localhostのtest_dbをバックアップする<br />
<code>mongodump --host localhost --db test_db</code></p>
<p>・localhostのtest_dbにあるtest_collectionをバックアップする<br />
<code>mongodump --host localhost --db test_db --collection test_collection</code></p>
<p>・localhostのtest_dbにあるtest_collectionのユーザ&#8221;akio&#8221;をクエリ指定してバックアップする<br />
<code>mongodump --host localhost --db test_db --collection test_collection -q {userName : 'akio'}</code></p>
<p>・バックアップしたtest_dbを全てリストアする<br />
<code>mongorestore --host localhost --db test_db ./dump/test_db</code></p>
<p>・バックアップしたtest_dbのtest_collectionをリストアする<br />
<code>mongorestore --host localhost --db test_db --collection test_collection  ./dump/test_db/test_collection.bson</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
