<br><br><div class="gmail_quote">2008/7/3 mat &lt;<a href="mailto:mat@lessermatters.co.uk">mat@lessermatters.co.uk</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Fellas!<br>
<br>
I&#39;ve finally decided to upgrade my file/web/mail/smb/nfs/etc server from<br>
a P133 (128M ram) to a faster sleeker 1.3Gig AMD athlon (512M). And I<br>
want to move my myth-backend there too.<br>
<br>
So, how can I easily copy my database from my livingroom PC to my garage PC?<br>
</blockquote><div><br>&nbsp;I use the following script to do a similar thing. I do have the same &#39;root&#39; password on both databases though:<br><br>&lt;---------------- cut<br>#!/bin/bash<br>pass=$2<br>if [ &quot;$2&quot; == &quot;&quot; ];then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read -s -p&quot;Password: &quot; pass<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&quot;<br>fi<br><br>mysqldump --master-data --add-drop-table -u$1 -p$pass mythconverg | mysql -htsunami -u$1 -p$pass mythconverg<br>&lt;---------------- cut<br>

<br>I use it like:<br><br>$ mysqlbackup root<br><br>it then asks for one password.<br><br>You could redirect mysql dump to a file, and then cat this into mysql later on.<br><br>Or if you&#39;ve got some kind of graphical thingy handy, the mysql-admin gui tool has a fairly easy to use backup facility.<br>
<br>(The &#39;--master-data&#39; may not be needed, I&#39;m using replication, this is my &#39;replication has all gone wrong&#39; script, and that switch is used to add the binary log file position to the backup.)<br><br>
HTH<br><br>Ian<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Cheers!<br>
<font color="#888888"><br>
Mat<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</font></blockquote></div><br>