<?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; Linux</title>
	<atom:link href="http://blog.monoware.co.jp/archives/category/linux/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>
		<item>
		<title>【Linux】 tarコマンドでパーミッション保持したまま圧縮/解凍する</title>
		<link>http://blog.monoware.co.jp/archives/14</link>
		<comments>http://blog.monoware.co.jp/archives/14#comments</comments>
		<pubDate>Tue, 08 Apr 2014 00:26:18 +0000</pubDate>
		<dc:creator>管理者</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.monoware.co.jp/?p=14</guid>
		<description><![CDATA[tarコマンドでパーミッション保持したまま圧縮/解凍するには「p」オプションを付ける また解凍時はroot権限などでないとパーミッションを持ったまま解凍できない模様。 # パーミッション保持したまま圧縮 tar cvzfp xxxxx.tar.gz ディレクトリ名 # パーミッション保持したまま解凍 tar xvzfp xxxxx.tar.gz]]></description>
			<content:encoded><![CDATA[<p>tarコマンドでパーミッション保持したまま圧縮/解凍するには「p」オプションを付ける<br />
また解凍時はroot権限などでないとパーミッションを持ったまま解凍できない模様。</p>
<p><code><br />
# パーミッション保持したまま圧縮<br />
tar cvzfp xxxxx.tar.gz ディレクトリ名</p>
<p># パーミッション保持したまま解凍<br />
tar xvzfp  xxxxx.tar.gz<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.monoware.co.jp/archives/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
