<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
		<id>http://www.hypersecuresolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MySQL</id>
		<title>MySQL - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.hypersecuresolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MySQL"/>
		<link rel="alternate" type="text/html" href="http://www.hypersecuresolutions.com/wiki/index.php?title=MySQL&amp;action=history"/>
		<updated>2026-04-03T20:11:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.hypersecuresolutions.com/wiki/index.php?title=MySQL&amp;diff=1574&amp;oldid=prev</id>
		<title>70.79.79.234 at 16:52, 10 July 2013</title>
		<link rel="alternate" type="text/html" href="http://www.hypersecuresolutions.com/wiki/index.php?title=MySQL&amp;diff=1574&amp;oldid=prev"/>
				<updated>2013-07-10T16:52:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:52, 10 July 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #Written by Shawn Rapaz on May 13th, 2013&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #Written by Shawn Rapaz on May 13th, 2013&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #This script backups up the complete MySQL database nightly.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #This script backups up the complete MySQL database nightly.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; DATESTAMP=`/bin/date &amp;quot;+%Y-%m-%d&amp;quot;`&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; DATESTAMP=`/bin/date &amp;quot;+%Y-%m-%d&amp;quot;`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; BACKUP_DIR=&amp;quot;/root/backups/database_dumps/&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; BACKUP_DIR=&amp;quot;/root/backups/database_dumps/&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; echo &amp;quot;Starting hourly backup of MySQL database (full)...&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; echo &amp;quot;Starting hourly backup of MySQL database (full)...&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>70.79.79.234</name></author>	</entry>

	<entry>
		<id>http://www.hypersecuresolutions.com/wiki/index.php?title=MySQL&amp;diff=1573&amp;oldid=prev</id>
		<title>70.79.79.234 at 16:52, 10 July 2013</title>
		<link rel="alternate" type="text/html" href="http://www.hypersecuresolutions.com/wiki/index.php?title=MySQL&amp;diff=1573&amp;oldid=prev"/>
				<updated>2013-07-10T16:52:01Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;#!/bin/sh&lt;br /&gt;
 #Written by Shawn Rapaz on May 13th, 2013&lt;br /&gt;
 #This script backups up the complete MySQL database nightly.&lt;br /&gt;
&lt;br /&gt;
 curDate=&amp;quot;/bin/date +%Y-%m-%d&amp;quot;&lt;br /&gt;
 DATESTAMP=`/bin/date &amp;quot;+%Y-%m-%d&amp;quot;`&lt;br /&gt;
 BACKUP_DIR=&amp;quot;/root/backups/database_dumps/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;Starting hourly backup of MySQL database (full)...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 #Does the pgsql dump and compresses it with bzip2&lt;br /&gt;
 mysqldump --all-databases -u root -pPASSWORD &amp;gt; /tmp/alldatabases_nightly.sql&lt;br /&gt;
 /bin/mv /tmp/alldatabases_nightly.sql /tmp/alldatabases_nightly-$DATESTAMP.sql&lt;br /&gt;
 /usr/bin/bzip2 /tmp/alldatabases_nightly-*.sql&lt;br /&gt;
&lt;br /&gt;
 #This moves the hourly backup to /space/backups/pgsql/hourly on db.accel&lt;br /&gt;
 /bin/mv -f /tmp/alldatabases_nightly-*.sql.bz2 $BACKUP_DIR&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;Postgresql hourly backup completed.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # look for files in archive directory and remove any that are older than 3*24hrs from current date of script starting&lt;br /&gt;
 echo &amp;quot;Removing files older than 3 days&amp;quot;&lt;br /&gt;
 find $BACKUP_DIR -type f -mtime +3 -exec rm {} \;&lt;br /&gt;
 echo &amp;quot;MySql nightly dump completed at $DATESTAMP&amp;quot;&lt;br /&gt;
 exit 0&lt;/div&gt;</summary>
		<author><name>70.79.79.234</name></author>	</entry>

	</feed>