<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1031074" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1031074</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1188186</link>
    <description> &lt;p&gt;I back up my Vbulletin every night through PHP admin via Hsphere. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Dec 2005 23:49:26 +0000</pubDate>
 <dc:creator>DC_Sara</dc:creator>
 <guid isPermaLink="false">comment 1188186 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1187931</link>
    <description> &lt;p&gt;Here is a semi-automated backup method via cron jobs.&lt;/p&gt;
&lt;p&gt;1: Save the following text as a file ending in &quot;.pl&quot;&lt;br /&gt;
2: Upload it in text FTP transfer mode (not binary) to your cgi-bin directory&lt;br /&gt;
3: Create a cronjob to execute this script every timecycle you want.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;CODE wrote:&lt;/strong&gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
use Net::FTP;&lt;/p&gt;
&lt;p&gt;# ************************************************** ********&lt;br /&gt;
# This is a simple script to place in your CPanel cron jobs that will FTP your&lt;br /&gt;
# backups of your MySQL databases to any FTP server you wish. By doing this,&lt;br /&gt;
# you will have automated backups of your databases sent to this FTP server&lt;br /&gt;
# on a routine basis. Then, you will have peace of mind knowing that HASWEB&#039;s&lt;br /&gt;
# servers were to go offline, you&#039;d have recent backups.&lt;br /&gt;
# ************************************************** ********&lt;/p&gt;
&lt;p&gt;# ***********&lt;br /&gt;
# Installation: *&lt;br /&gt;
# ***********&lt;/p&gt;
&lt;p&gt;# You will have to rename the file sql_ftp_backup.pl and make sure it has&lt;br /&gt;
# executable permission set (mode 755 will work) which can be done with your FTP client&lt;/p&gt;
&lt;p&gt;# 1. Download and save this script to your local computer.&lt;br /&gt;
# 2. Open the file in a text editor like Notepad with Word Wrap turned off.&lt;br /&gt;
# 3. Edit the variables with the &amp;lt;&amp;gt; symbols around them.&lt;br /&gt;
#&lt;br /&gt;
# &amp;nbsp; SEE PROGRAMMER&#039;S NOTE SECTION BELOW!!!!&lt;br /&gt;
#&lt;br /&gt;
# &amp;nbsp; (Make sure you leave OFF your username from the database names.&lt;br /&gt;
# &amp;nbsp; For a complete list of db names, check out your backup section on CPanel)&lt;br /&gt;
#&lt;br /&gt;
# 4. Save the document and then rename it to sql_ftp_backup.pl&lt;br /&gt;
# 5. Upload the file to your home directory (The main root of your FTP dirs)&lt;br /&gt;
# 6. Make sure that it has been renamed to sql_ftp_backup.pl&lt;br /&gt;
# 7. Make sure that the CHMOD setting is executable (mode 755)&lt;/p&gt;
&lt;p&gt;# ********&lt;br /&gt;
# Usage: *&lt;br /&gt;
# ********&lt;br /&gt;
# 1. Go to your cPanel and click on &quot;Cron Jobs&quot;.&lt;br /&gt;
# 2. Click on the standard button.&lt;br /&gt;
# 3. Enter a valid email address in the top entry. This is where any error output&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;from the script will be sent in case the script fails.&lt;br /&gt;
# 5. In the entry box &quot;Command to run&quot; enter: /home/simplele/sql_backup.pl&lt;br /&gt;
# 6. The default configuration is to have the script run every day at 3am&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;If you want to change this, simply alter the config you see on your screen&lt;br /&gt;
#&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;For instance, if you want it to run every Sunday, just click on Sunday in&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;the weekday selection box.&lt;br /&gt;
#&lt;br /&gt;
# 7. Test the script out by setting it to run once every minute. After you&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;are confident that it will work correctly, set it to once a day/once a week.&lt;br /&gt;
#&lt;br /&gt;
# 8. Click &quot;Save Crontab&quot;&lt;br /&gt;
#&lt;br /&gt;
# Enjoy!&lt;/p&gt;
&lt;p&gt;# October 2003 - David Sierkowski (&lt;a href=&quot;mailto:scripts@phonism.net&quot;&gt;scripts@phonism.net&lt;/a&gt;)&lt;br /&gt;
# EDIT FOR FTP: November 26, 2003 - Justin Tubbs (&lt;a href=&quot;mailto:justin@simpleletter.com&quot;&gt;justin@simpleletter.com&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;# ************************************************** ********&lt;br /&gt;
# (from the BSD license. in short, I&#039;m not accountable for anything this script does to you.)&lt;br /&gt;
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;&lt;br /&gt;
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE&lt;br /&gt;
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE&lt;br /&gt;
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE&lt;br /&gt;
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL&lt;br /&gt;
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR&lt;br /&gt;
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER&lt;br /&gt;
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,&lt;br /&gt;
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE&lt;br /&gt;
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;
# ************************************************** ********&lt;br /&gt;
use MIME::Lite;&lt;/p&gt;
&lt;p&gt;# ************************************************** ********&lt;br /&gt;
# PROGRAMMER&#039;S NOTE SECTION:&lt;br /&gt;
# In this section, any variables with &amp;lt;&amp;gt; around them need to be filled.&lt;br /&gt;
# Remove the &quot;&amp;lt;&amp;gt;&quot; marks and the caps text inside and replace with your parameters.&lt;br /&gt;
# ************************************************** ********&lt;/p&gt;
&lt;p&gt;# make sure this is your cPanel username - CASE SENSITIVE&lt;br /&gt;
$user = &quot;&quot;;&lt;br /&gt;
# enter your cPanel password here - CASE SENSITIVE&lt;br /&gt;
$password = &quot;&quot;;&lt;/p&gt;
&lt;p&gt;# enter the list of databases you want to have sent to you&lt;br /&gt;
# leave off your username. use the database names listed on your backup page&lt;br /&gt;
# in cPanel&lt;br /&gt;
#&lt;br /&gt;
# USE THIS FORMAT - CASE SENSITIVE:&lt;br /&gt;
# @dbs = qw(addressbook calendar mailingList) etc... &amp;nbsp;(space separated)&lt;br /&gt;
#&lt;br /&gt;
@dbs = qw(addressbook calendar mailingList);&lt;/p&gt;
&lt;p&gt;# this should be /home/yourusername/tmp or /home2/yourusername/tmp&lt;br /&gt;
# go with /home/ and if the script fails, switch it to /home2/&lt;br /&gt;
$tmp_dir = &quot;/home//tmp&quot;;&lt;br /&gt;
# mysqldump options to make a cPanel restore compatible dump&lt;br /&gt;
#&lt;br /&gt;
# NOTE: if you want to have a backup compatible with cPanel&#039;s restore&lt;br /&gt;
# mechanism, leave the $dump_opts alone. Only change this if you know what&lt;br /&gt;
# you are doing.&lt;br /&gt;
$dump_opts = &quot;-c --add-drop-table&quot;;&lt;/p&gt;
&lt;p&gt;# name the file you want to contain backup log information&lt;br /&gt;
$msg_file = $tmp_dir . &quot;/msg.txt&quot;;&lt;/p&gt;
&lt;p&gt;# set a variable with today&#039;s date in it&lt;br /&gt;
$date = `date +&#039;%m-%d-%Y&#039;`;&lt;/p&gt;
&lt;p&gt;open(MSG,&quot;&amp;gt;$msg_file&quot;);&lt;br /&gt;
print MSG &quot;Here are the MySQL Dumps, generated by SQL_Backup: \n&quot;;&lt;br /&gt;
print MSG &quot;\nThe following databases are enclosed: \n\n&quot;;&lt;/p&gt;
&lt;p&gt;# Loop through the array of db names and send each backup script to FTP server&lt;br /&gt;
foreach $db (@dbs)&lt;br /&gt;
{&lt;br /&gt;
system(&quot;mysqldump $dump_opts --user=$user --password=$password $user\_$db &amp;gt; $tmp_dir/$db.sql&quot;);&lt;br /&gt;
print MSG &quot;\t $db\n&quot;;&lt;br /&gt;
push(@atts,&quot;$tmp_dir/$db.sql&quot;);&lt;/p&gt;
&lt;p&gt;$ftp = Net::FTP-&amp;gt;new(&quot;&quot;, Debug =&amp;gt; 0) or die &quot;Cannot connect to : $@&quot;;&lt;br /&gt;
$ftp-&amp;gt;login(&quot;&quot;,&quot;&quot;) or die &quot;Cannot login &quot;, $ftp-&amp;gt;message;&lt;br /&gt;
$ftp-&amp;gt;cwd(&quot;&quot;) or die &quot;Cannot change working directory to &quot;, $ftp-&amp;gt;message;&lt;br /&gt;
$ftp-&amp;gt;put(&quot;$tmp_dir/$db.sql&quot;) or die &quot;get failed &quot;, $ftp-&amp;gt;message;&lt;br /&gt;
$ftp-&amp;gt;quit;&lt;br /&gt;
}&lt;br /&gt;
print MSG &quot;\n&quot;;&lt;br /&gt;
close(MSG);
&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Mon, 12 Dec 2005 23:58:25 +0000</pubDate>
 <dc:creator>James</dc:creator>
 <guid isPermaLink="false">comment 1187931 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1186934</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;lamad wrote:&lt;/strong&gt; agreed with mairving.  nothing compares to automated frequent backups.&lt;/p&gt;
&lt;p&gt;backing up is actually quite simple.  have two machines, both connected to the internet and at physically seperate locations if your concerned about the building burning down, etc.&lt;/p&gt;
&lt;p&gt;have a cron job that runs nightly.&lt;/p&gt;
&lt;p&gt;rysnc your web and sql root directories to the backup server.&lt;/p&gt;
&lt;p&gt;ftp is too insecure, sftp secure but still slow.  rsync has many advantages.  the &lt;a href=&quot;http://samba.anu.edu.au/rsync/&quot; class=&quot;bb-url&quot;&gt;rsync website&lt;/a&gt;  has various backup examples.  i recomend a 7 day rotating backup.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I wouldn&#039;t rsync your db directory. I think that is what you are talking about. The reason is that you can get a corrupt database if you rsync it while you are writing to it. It would be better to dump the db, then sync that up. Rsync is a great program but make sure that it is secured before you use it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Dec 2005 16:19:08 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1186934 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1186927</link>
    <description> &lt;p&gt;agreed with mairving.  nothing compares to automated frequent backups.&lt;/p&gt;
&lt;p&gt;backing up is actually quite simple.  have two machines, both connected to the internet and at physically seperate locations if your concerned about the building burning down, etc.&lt;/p&gt;
&lt;p&gt;have a cron job that runs nightly.&lt;/p&gt;
&lt;p&gt;rysnc your web and sql root directories to the backup server.&lt;/p&gt;
&lt;p&gt;ftp is too insecure, sftp secure but still slow.  rsync has many advantages.  the &lt;a href=&quot;http://samba.anu.edu.au/rsync/&quot; class=&quot;bb-url&quot;&gt;rsync website&lt;/a&gt;  has various backup examples.  i recomend a 7 day rotating backup.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Dec 2005 16:00:38 +0000</pubDate>
 <dc:creator>lamad</dc:creator>
 <guid isPermaLink="false">comment 1186927 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1186639</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Aven101 wrote:&lt;/strong&gt; You should also consider backing up your database every once in a while, in case anything bad happens &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Because it happened to me, and I lost everything &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Every once and awhile ain&#039;t going to cut it. If you care about back it up daily using a cron job. Set it, test it regularly and you will feel much better if your data suddenly disappears.&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Nov 2005 03:19:44 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1186639 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1186635</link>
    <description> &lt;p&gt;You should also consider backing up your database every once in a while, in case anything bad happens &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Because it happened to me, and I lost everything &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Nov 2005 02:27:56 +0000</pubDate>
 <dc:creator>Aven101</dc:creator>
 <guid isPermaLink="false">comment 1186635 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1181806</link>
    <description> &lt;p&gt;thanks everyone&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Oct 2005 15:09:44 +0000</pubDate>
 <dc:creator>bleep</dc:creator>
 <guid isPermaLink="false">comment 1181806 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1181798</link>
    <description> &lt;p&gt;Here is one that I use that backups the database and ftp&#039;s the backup to another server (note: you don&#039;t have to tell it the db name, since it will backup all that you have permission to):&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;#####################################&lt;br /&gt;### MySQL Configuration Variables ###&lt;br /&gt;#####################################&lt;br /&gt;&lt;br /&gt;# MySQL Hostname&lt;br /&gt;DBHOST=&amp;#039;$hostname&amp;#039;&lt;br /&gt;&lt;br /&gt;# MySQL Username&lt;br /&gt;DBUSER=&amp;#039;$mysql_username&amp;#039;&lt;br /&gt;&lt;br /&gt;# MySQL Password&lt;br /&gt;DBPASSWD=&amp;#039;$mysql_password&amp;#039;&lt;br /&gt;&lt;br /&gt;#####################################&lt;br /&gt;### FTP Configuration Variables #####&lt;br /&gt;#####################################&lt;br /&gt;&lt;br /&gt;# FTP Hostname&lt;br /&gt;FTPHOST=&amp;#039;$remote_ftpsite&amp;#039;&lt;br /&gt;&lt;br /&gt;# FTP Username&lt;br /&gt;FTPUSER=&amp;#039;$remote_username&amp;#039; &lt;br /&gt;&lt;br /&gt;# FTP Password&lt;br /&gt;FTPPASSWD=&amp;#039;$remote_password&amp;#039;&lt;br /&gt;&lt;br /&gt;# Local Directory for Dump Files&lt;br /&gt;LOCALDIR=&amp;#039;$local_directory&amp;#039;&lt;br /&gt;&lt;br /&gt;# Remote Directory for Offsite Backup&lt;br /&gt;REMOTEDIR=&amp;#039;$remote_directory&amp;#039;&lt;br /&gt;&lt;br /&gt;# Prefix for offsite .tar file backup &lt;br /&gt;TARPREFIX=&amp;#039;$tar_prefix&amp;#039;&lt;br /&gt;&lt;br /&gt;#####################################&lt;br /&gt;### Edit Below If Necessary ######### &lt;br /&gt;#####################################&lt;br /&gt;&lt;br /&gt;cd $LOCALDIR&lt;br /&gt;SUFFIX=`eval date +%m%d%Y-%k%M`&lt;br /&gt;&lt;br /&gt;DBS=`/usr/local/bin/mysql -u$DBUSER -p$DBPASSWD -h$DBHOST -e&amp;quot;show databases&amp;quot;`&lt;br /&gt;for DATABASE in $DBS&lt;br /&gt;do&lt;br /&gt;	if [ $DATABASE != &amp;quot;Database&amp;quot; ]; then&lt;br /&gt;		FILENAME=$SUFFIX-$DATABASE.gz&lt;br /&gt;		/usr/local/bin/mysqldump --opt -Q -u$DBUSER -p$DBPASSWD -h$DBHOST $DATABASE | gzip --best &amp;gt; $LOCALDIR$FILENAME&lt;br /&gt;	fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;chmod 400 $LOCALDIR*.gz&lt;br /&gt;&lt;br /&gt;tar -cf $TARPREFIX-$SUFFIX.tar $SUFFIX-*.gz&lt;br /&gt;&lt;br /&gt;ftp -n $FTPHOST &amp;lt;&amp;lt;END_SCRIPT&lt;br /&gt;quote USER $FTPUSER&lt;br /&gt;quote PASS $FTPPASSWD&lt;br /&gt;cd $REMOTEDIR&lt;br /&gt;put $TARPREFIX-$SUFFIX.tar&lt;br /&gt;quit&lt;br /&gt;END_SCRIPT&lt;br /&gt;&lt;br /&gt;rm -f $TARPREFIX-$SUFFIX.tar&lt;br /&gt;&lt;br /&gt;exit 0&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Here is another that will backup your db and send it to your gmail account. I haven&#039;t tested it though.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Mysql Database Info:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;db_name&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// name of the database.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;db_uname&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// username with access to database.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;db_pass&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// password for username.&lt;br /&gt;&lt;br /&gt;// E-mail Information:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mailto &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// email address to send the database to.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fromaddr &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Email addres this should be shown as sent from&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subject &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; backup for &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;F d, y&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// subject of email.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Here is the &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; database backup&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// message body.&lt;br /&gt;&lt;br /&gt;// Options:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$compress_file &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;1&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// 1 = Compress the sql file with tar.gz&amp;nbsp; 0 = Make it a plain text sql file.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$send_email &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;1&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// 1 = send backup copy via e-mail.&amp;nbsp; 0 = just backup data, don&#039;t e-mail.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$delete_local &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;1&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// 1 = delete local copy when done.&amp;nbsp; 0 = leave local copy when done.&lt;br /&gt;&lt;br /&gt;// Database Backup Filename &amp;amp; Location&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;backup-&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;-&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Y_m_d_H_i&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// filename to backup the database as.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/home/username/public_html/upload&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// absolute path to folder containing database - &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;no trailing slash&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;must be a writeable location&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// END of variables.&lt;br /&gt;// Do Not Edit Beyond This Point&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Global Variables&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;passthru &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;mysqldump -u&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; -p&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.sql&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Problem: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; with backup&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; exit;}&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$compress_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;passthru &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;tar -cpzf &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.tar.gz &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.sql&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Problem: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$error&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; with compress&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; exit;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;unlink&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.sql&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.tar.gz&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;} else {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.sql&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$send_email&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;md5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uniqid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;From: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fromaddr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;X-Mailer: PHP/&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phpversion&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;MIME-Version: 1.0\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-type: multipart/mixed;boundary=\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\r\n\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;This is a multi-part message in MIME format.&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\r\n\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_file &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;filesize&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;chunk_split&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;base64_encode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;--&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-type: text/plain; charset=us-ascii\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-transfer-encoding: 8bit\r\n\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;--&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;basename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-type: application/octet-stream; name=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-transfer-encoding:base64\r\n\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\r\n\r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;--&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_boundary&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;--&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mail&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mailto&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subject&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_body&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mail_head&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$delete_local&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;unlink&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupto&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$backupas&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Oct 2005 13:43:28 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1181798 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1181787</link>
    <description> &lt;p&gt;If you have CPanel or something similar, there is likely a built in option that says &quot;Back up database&quot;&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Oct 2005 12:14:38 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1181787 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/backing-forum#comment-1181752</link>
    <description> &lt;p&gt;Plenty of ways to do it. &lt;a href=&quot;http://www.vbulletin.com/forum/showthread.php?t=134821&quot; class=&quot;bb-url&quot;&gt;Here&lt;/a&gt; is one way.&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Oct 2005 02:49:01 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1181752 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
