<?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>postIt &#187; backup-restore</title>
	<atom:link href="https://lakm.us/postit/tag/backup-restore/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>Restoring a production database into VM  &#8230;</title>
		<link>https://lakm.us/postit/2012/07/restoring-a-production-database-into-vm/</link>
		<comments>https://lakm.us/postit/2012/07/restoring-a-production-database-into-vm/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 04:31:47 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup-restore]]></category>
		<category><![CDATA[manipulation]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2012/07/restoring-a-production-database-into-vm/</guid>
		<description><![CDATA[Restoring a production database into VM and change date to make it looks like some point of time inside the production server i.e. in this case May 4, 2010 $ /etc/init.d/mysqld stop $ /etc/init.d/httpd stop $ date +%D -s 2010-05-04 $ date +%T -s 23:00:00 -u Check date $ date Tue May 4 19:00:01 EDT [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Restoring a production database into VM and change date to make it looks like some point of time inside the production server i.e. in this case May 4, 2010</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop
$ <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd stop
$ <span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>D <span style="color: #660033;">-s</span> <span style="color: #000000;">2010</span>-05-04
$ <span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>T <span style="color: #660033;">-s</span> <span style="color: #000000;">23</span>:00:00 <span style="color: #660033;">-u</span></pre></td></tr></table></div>

<p>Check date</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">date</span>
Tue May  <span style="color: #000000;">4</span> <span style="color: #000000;">19</span>:00:01 EDT <span style="color: #000000;">2010</span></pre></td></tr></table></div>

<p>Import database</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd start
mysql <span style="color: #660033;">-u</span> some-username <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">&lt;</span> some-db.sql</pre></td></tr></table></div>

<p>Note: Hardware clock option in the VirtualBox VM setting is disabled</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2012/07/restoring-a-production-database-into-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
