<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Ubuntu Linux Backup MySQL Server Shell Script</title> <atom:link href="http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Eitan</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67877</link> <dc:creator>Eitan</dc:creator> <pubDate>Thu, 09 Feb 2012 11:35:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67877</guid> <description>using lftp the files are cut at the &quot;:&quot; in the file name (comes from the %T). How can I avoid this?</description> <content:encoded><![CDATA[<p>using lftp the files are cut at the &#8220;:&#8221; in the file name (comes from the %T). How can I avoid this?</p> ]]></content:encoded> </item> <item><title>By: Darek</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67726</link> <dc:creator>Darek</dc:creator> <pubDate>Fri, 03 Feb 2012 19:41:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67726</guid> <description>&quot;Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well…&quot;
SHIT! Same thing on my side. I had to reformat and reinstall my server. NOT COOL!</description> <content:encoded><![CDATA[<p>&#8220;Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well…&#8221;</p><p>SHIT! Same thing on my side. I had to reformat and reinstall my server. NOT COOL!</p> ]]></content:encoded> </item> <item><title>By: simbonk</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67145</link> <dc:creator>simbonk</dc:creator> <pubDate>Wed, 18 Jan 2012 15:29:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-67145</guid> <description>thank you thankyou! You just saved me 8 hours ;)</description> <content:encoded><![CDATA[<p>thank you thankyou! You just saved me 8 hours ;)</p> ]]></content:encoded> </item> <item><title>By: Avin Tokade</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-65352</link> <dc:creator>Avin Tokade</dc:creator> <pubDate>Fri, 09 Dec 2011 07:55:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-65352</guid> <description>Nice and Very well explained..
I have one issue
I have admin user in Ubuntu box.  But any script for this user skip by cron.
How to run script as unprivileged user ?</description> <content:encoded><![CDATA[<p>Nice and Very well explained..<br
/> I have one issue<br
/> I have admin user in Ubuntu box.  But any script for this user skip by cron.</p><p>How to run script as unprivileged user ?</p> ]]></content:encoded> </item> <item><title>By: JJ</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-65060</link> <dc:creator>JJ</dc:creator> <pubDate>Thu, 01 Dec 2011 21:14:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-65060</guid> <description>Great artilce - Thanks
BUT how do I restore my db&#039;s? I ran the script on my old machine and now I need to restore the backed-up DB&#039;s on my new machine.
How do I do this?
Thanks!</description> <content:encoded><![CDATA[<p>Great artilce &#8211; Thanks<br
/> BUT how do I restore my db&#8217;s? I ran the script on my old machine and now I need to restore the backed-up DB&#8217;s on my new machine.<br
/> How do I do this?</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Youri</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-64711</link> <dc:creator>Youri</dc:creator> <pubDate>Tue, 22 Nov 2011 10:45:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-64711</guid> <description>Even though this post is from 2007, it was very useful!
I&#039;ve created my own simple version of this script which you can pass arguments to and skips the &quot;information_schema&quot; database. For anyone that wants to use it: https://gist.github.com/1385371
usage:
backup_mysql_databases.sh -u backup -p password -o /home/user/mysql_backups</description> <content:encoded><![CDATA[<p>Even though this post is from 2007, it was very useful!<br
/> I&#8217;ve created my own simple version of this script which you can pass arguments to and skips the &#8220;information_schema&#8221; database. For anyone that wants to use it: <a
href="https://gist.github.com/1385371" rel="nofollow">https://gist.github.com/1385371</a></p><p>usage:</p><p>backup_mysql_databases.sh -u backup -p password -o /home/user/mysql_backups</p> ]]></content:encoded> </item> <item><title>By: ch</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-64568</link> <dc:creator>ch</dc:creator> <pubDate>Fri, 18 Nov 2011 08:19:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-64568</guid> <description>Gr3at script! Thank you very much!
I only have one question, when i execute the script i got this error message:
&lt;pre&gt;
mysqldump: Got error: 1044: Access denied for user &#039;root&#039;@&#039;localhost&#039; to database &#039;information_schema&#039; when using LOCK TABLES
&lt;/pre&gt;
How can i avoid this? The other db&#039;s were dumped correctly. Is there a additional command i have to add?
thank you in advance!</description> <content:encoded><![CDATA[<p>Gr3at script! Thank you very much!</p><p>I only have one question, when i execute the script i got this error message:</p><pre>
mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES
</pre><p>How can i avoid this? The other db&#8217;s were dumped correctly. Is there a additional command i have to add?</p><p>thank you in advance!</p> ]]></content:encoded> </item> <item><title>By: marek</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-61018</link> <dc:creator>marek</dc:creator> <pubDate>Tue, 26 Jul 2011 12:12:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-61018</guid> <description>yup
[ ! -d $BAK ] &amp;&amp; mkdir -p $BAK &#124;&#124; /bin/rm -f $BAK/*
Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well…
agree
same for me
VIVEK GITE can modify this part of script ...</description> <content:encoded><![CDATA[<p>yup<br
/> [ ! -d $BAK ] &amp;&amp; mkdir -p $BAK || /bin/rm -f $BAK/*</p><p>Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well…</p><p>agree</p><p>same for me</p><p>VIVEK GITE can modify this part of script &#8230;</p> ]]></content:encoded> </item> <item><title>By: StudioCart</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-56645</link> <dc:creator>StudioCart</dc:creator> <pubDate>Fri, 25 Mar 2011 19:02:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-56645</guid> <description>OK... this may help someone...here is my situation... I used this script to transfer backups from a virtualbox ubuntu Mysql instance to the host win 2003 server.
The host is running FileZilla, Ubuntu was using lftp as above.
When I ran the script I would get a 550 can&#039;t access file error.  So I proceeded to troubleshoot for about 10 hours... the thing that got me was that I could create a test.txt file and have the script pick it and send it, but the .gz files created by the script would not transfer even by using lftp at the command line. The error led me to search for a permissions issue. Then I tried other ubuntu clients and other ftp servers on the windows side.
Low and behold I stumbled upon the solution by renaming the .gz file with a shorter name than the file creates.
So it turns out that the name length is the issue...
So I hope this saves someone some head banging..</description> <content:encoded><![CDATA[<p>OK&#8230; this may help someone&#8230;here is my situation&#8230; I used this script to transfer backups from a virtualbox ubuntu Mysql instance to the host win 2003 server.</p><p>The host is running FileZilla, Ubuntu was using lftp as above.</p><p>When I ran the script I would get a 550 can&#8217;t access file error.  So I proceeded to troubleshoot for about 10 hours&#8230; the thing that got me was that I could create a test.txt file and have the script pick it and send it, but the .gz files created by the script would not transfer even by using lftp at the command line. The error led me to search for a permissions issue. Then I tried other ubuntu clients and other ftp servers on the windows side.</p><p>Low and behold I stumbled upon the solution by renaming the .gz file with a shorter name than the file creates.</p><p>So it turns out that the name length is the issue&#8230;</p><p>So I hope this saves someone some head banging..</p> ]]></content:encoded> </item> <item><title>By: azteam</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-48363</link> <dc:creator>azteam</dc:creator> <pubDate>Thu, 15 Jul 2010 08:47:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-48363</guid> <description>When I run shell scripts, it return error:
mput: Access failed: 550 can&#039;t access file.
How i fix this problem?</description> <content:encoded><![CDATA[<p>When I run shell scripts, it return error:<br
/> mput: Access failed: 550 can&#8217;t access file.</p><p>How i fix this problem?</p> ]]></content:encoded> </item> <item><title>By: skyper</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-43769</link> <dc:creator>skyper</dc:creator> <pubDate>Mon, 21 Sep 2009 20:33:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-43769</guid> <description>But how to create with proftpd?</description> <content:encoded><![CDATA[<p>But how to create with proftpd?</p> ]]></content:encoded> </item> <item><title>By: ZYV</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-43464</link> <dc:creator>ZYV</dc:creator> <pubDate>Fri, 28 Aug 2009 20:04:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-43464</guid> <description>&lt;q&gt;[ ! -d $BAK ] &amp;&amp; mkdir -p $BAK &#124;&#124; /bin/rm -f $BAK/*&lt;/q&gt;
Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well...</description> <content:encoded><![CDATA[<p><q>[ ! -d $BAK ] &amp;&amp; mkdir -p $BAK || /bin/rm -f $BAK/*</q></p><p>Most stupid idea ever. Just accidentally wiped my ~/bin directory. Ah, well&#8230;</p> ]]></content:encoded> </item> <item><title>By: Naveen</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-42826</link> <dc:creator>Naveen</dc:creator> <pubDate>Fri, 31 Jul 2009 09:41:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-42826</guid> <description>I want to take backup for MYSQL server using java code. I use a backup file name  - backup20060731.bak. Now I want to execute this file so that I coule place it into a .zip file and sore it to to a repository using FTP.
I want this type of command for executing the backup(&quot;.bak&quot;) file
Runtime rt = Runtime.getname();
Runtime rt = Runtime.getname();
rt.exec(&quot;exp User/Password file = &quot; + backupFileName + &quot;log = &quot; + backupFileName + &quot;.log FULL = y&quot;);
The above command is for ORACLE database. Can any body  give me the command for MYSQL database or SQL server 2000 database or POSTGRES database.
Please help me, I need it urgently.</description> <content:encoded><![CDATA[<p>I want to take backup for MYSQL server using java code. I use a backup file name  &#8211; backup20060731.bak. Now I want to execute this file so that I coule place it into a .zip file and sore it to to a repository using FTP.<br
/> I want this type of command for executing the backup(&#8220;.bak&#8221;) file</p><p>Runtime rt = Runtime.getname();<br
/> Runtime rt = Runtime.getname();<br
/> rt.exec(&#8220;exp User/Password file = &#8221; + backupFileName + &#8220;log = &#8221; + backupFileName + &#8220;.log FULL = y&#8221;);</p><p>The above command is for ORACLE database. Can any body  give me the command for MYSQL database or SQL server 2000 database or POSTGRES database.<br
/> Please help me, I need it urgently.</p> ]]></content:encoded> </item> <item><title>By: TimeWaster</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-42629</link> <dc:creator>TimeWaster</dc:creator> <pubDate>Sun, 19 Jul 2009 18:55:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-42629</guid> <description>THANX! works like a charm!</description> <content:encoded><![CDATA[<p>THANX! works like a charm!</p> ]]></content:encoded> </item> <item><title>By: ravi</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-38659</link> <dc:creator>ravi</dc:creator> <pubDate>Wed, 27 Aug 2008 06:53:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-38659</guid> <description>hi friends i m new to shell scripting. i want some help if u can. i want to take binary backup (not the simple dump)of mysql database and store it in a folder named of current date and this script should run at early hours of each day.</description> <content:encoded><![CDATA[<p>hi friends i m new to shell scripting. i want some help if u can. i want to take binary backup (not the simple dump)of mysql database and store it in a folder named of current date and this script should run at early hours of each day.</p> ]]></content:encoded> </item> <item><title>By: The Traveller</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-37858</link> <dc:creator>The Traveller</dc:creator> <pubDate>Tue, 06 May 2008 18:02:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-37858</guid> <description>Thanks for this code! Its really help me!!!
Regards!</description> <content:encoded><![CDATA[<p>Thanks for this code! Its really help me!!!</p><p>Regards!</p> ]]></content:encoded> </item> <item><title>By: davidevans</title><link>http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-37436</link> <dc:creator>davidevans</dc:creator> <pubDate>Thu, 07 Feb 2008 18:42:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/#comment-37436</guid> <description>I&#039;m trying to invoke a lftp command within a shell script from a sqr. The idea is to lftp a file from unix to the mainframe. Unfortunately, I&#039;ve receive the error message, &quot;Unexpected Error&quot;. The sqr code is as follows:
let $script = &#039;/server/peoplesoft/tmp/lftp.ssh&#039;
call system $script #status
*******Unix Script*****
#!/bin/ksh
lftp -u USERIDSAM, PASSWORD LFTP.TEST.IT.EDU
put testfile.txt testtmp.txt
exit
#ption: This shell script will lftp a file from unix to the mainframe</description> <content:encoded><![CDATA[<p>I&#8217;m trying to invoke a lftp command within a shell script from a sqr. The idea is to lftp a file from unix to the mainframe. Unfortunately, I&#8217;ve receive the error message, &#8220;Unexpected Error&#8221;. The sqr code is as follows:<br
/> let $script = &#8216;/server/peoplesoft/tmp/lftp.ssh&#8217;<br
/> call system $script #status<br
/> *******Unix Script*****<br
/> #!/bin/ksh<br
/> lftp -u USERIDSAM, PASSWORD LFTP.TEST.IT.EDU<br
/> put testfile.txt testtmp.txt<br
/> exit<br
/> #ption: This shell script will lftp a file from unix to the mainframe</p> ]]></content:encoded> </item> </channel> </rss>
