<?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>fengcool.com &#187; mysql-zrm</title>
	<atom:link href="http://www.fengcool.com/tag/mysql-zrm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fengcool.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backup MySQL databases to remote server using mysql-zrm</title>
		<link>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/</link>
		<comments>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 04:45:17 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql-zrm]]></category>
		<category><![CDATA[zrm]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=57</guid>
		<description><![CDATA[using mysql-zrm to backup a large databases from a client server. A step by step tutorial teach you the best way to backup your MySQL database.]]></description>
			<content:encoded><![CDATA[<p>Recently I use mysql-zrm to backup a large databases from a client server. I can backup all databases or a set of database or maybe some of tables with one line linux command. Pretty easy to use.</p>
<p>You may imagine that mysql-zrm is a strong management tool of mysql, mysqldump and mysqlhotcopy.  The key benifits for me are : I can backup all databases at once with my databases are automatically created if a new client comes; mysql-zrm is able to save compressed data to different folder, so I can keep saved data up to seven days (you may do it one month or maybe one year); It also has a scheduler to do your task every certain time you want.</p>
<p><strong>Installation:</strong></p>
<p>1. login to your backup server</p>
<p>2. Download rpm from http://www.zmanda.com/download-zrm.php</p>
<p>3. If you don&#8217;t have Perl installed, run &#8221; yum install perl &#8221;</p>
<p>4. run &#8221; rpm -ivh MySQL-zrm-2.0-1.noarch.rpm &#8221;</p>
<p>5. &#8220;  vi /etc/mysql-zrm/mysql-zrm.conf &#8221; update following parameters in file</p>
<p>backup-mode=logical [ ideally raw for myisam engine and logical for innodb. but I recommend using logical for default. Because when I use raw for default value, and if there is table with innodb engine exist, zrm will prompt me password for mysql@(server_ip) which have no idea about linux mysql user login ]</p>
<p>destination=/home/mybackup_dir  [ specify where backup files will be stored]</p>
<p><strong>Start backup:</strong></p>
<p>mysql-zrm &#8211;action backup &#8211;host xxx.xxx.xxx.xxx &#8211;user aabb &#8211;password ccdd  &#8211;backup-set abcd</p>
<p>where<br />
&#8211;host is remote server IP for MySQL<br />
&#8211;user is remote MySQL server  user login<br />
&#8211;password is remote MySQL server  user login password<br />
&#8211;backup-set is backup folder name</p>
<p><strong>Result:</strong></p>
<p>after running the command, you will get backup file in the path look like this</p>
<p>/home/mybackup_dir/abcd/20081128195236</p>
<p><strong>Restore database to local server:</strong></p>
<p>/usr/bin/mysql-zrm-restore &#8211;user=1122 &#8211;password=2233 &#8211;source-directory=/home/mybackup_dir/abcd/20081128195236<br />
check out your backup server MySQL database. <img src='http://www.fengcool.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2008%2F11%2Fbackup-mysql-to-remote-server-using-mysql-zrm%2F&amp;linkname=Backup%20MySQL%20databases%20to%20remote%20server%20using%20mysql-zrm"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2008/11/backup-mysql-to-remote-server-using-mysql-zrm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

