On 9/8/07, <b class="gmail_sendername">Marc</b> &lt;<a href="mailto:drayson@net1plus.com">drayson@net1plus.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&lt;snip&gt;</blockquote><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Edit the script as needed.<br><br>#! /bin/bash<br>#<br>
# Created on 3/22/2006 by sdkovacs<br># Script: mythbackup<br>#<br>#<br>#<br>#<br>########################################################<br>BACKFILE=&quot;/home/mythtv/mythbackup.`date +%a`.sql.gz&quot;<br><br><br>mysqldump -u mythtv -pmythtv mythconverg -c | gzip -c &gt; ${BACKFILE}
<br>if [ $? -ne &quot;0&quot; ]<br>then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Mythtv database backup failed! Exiting...&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit 1<br>fi<br><br>cp ${BACKFILE} /videos/backup/myth<br>_______________________________________________
<br>&lt;snip&gt;</blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">#! /bin/bash<br>#<br># Created on 3/22/2006 by sdkovacs<br>
# Updated on 9/8/2007 by Marc<br># Script: mythbackup<br>#<br>#<br>#<br>########################################################<br>BACKFILE=&quot;/record/mythbackup.`date +%a`.sql.gz&quot;<br><br><br>mysqldump -u mythtv -pmythtv mythconverg -c | gzip -c &gt; ${BACKFILE} if [ $?
<br>-ne &quot;0&quot; ] then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Mythtv database backup failed! Exiting...&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit 1<br>fi<br><br>&lt;snip&gt;</blockquote><div><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marc<br></blockquote></div><br>Marc,<br><br>Looks like you smooshed two lines together.&nbsp; Try inserting a linefeed between &quot;${BACKFILE}&quot; and &quot;if&quot;.<br><br>The &quot;e&quot; gzip is complaining about is in &quot;-ne&quot;.&nbsp; Without looking at the man page for gzip, I&#39;m betting that -n is a legitimate option for gzip.
<br><br>Nice to know I&#39;m not the only one with fat fingers. ;-)<br><br>Craig.<br>