<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>3cc Internet &#187; ftp backup</title>
	<atom:link href="http://www.3cc.org/tag/ftp-backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3cc.org</link>
	<description>Simplifying sites</description>
	<lastBuildDate>Sat, 31 Dec 2011 15:51:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Automatic Local, FTP &amp; Email Backups of MySQL Databases with Cron</title>
		<link>http://www.3cc.org/2010/04/automatic-local-ftp-email-backups-of-mysql-databases-with-cron/</link>
		<comments>http://www.3cc.org/2010/04/automatic-local-ftp-email-backups-of-mysql-databases-with-cron/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 10:20:39 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[automatic backup]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[email backup]]></category>
		<category><![CDATA[ftp backup]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.3cc.org/backyard/?p=38</guid>
		<description><![CDATA[I&#8217;ll start by saying this is not all my own code, it is based on dagon design&#8217;s original release in 2007 (Automatic MySql Backup Script) but this version builds on their version 2.1 to add FTP support. What this script can do: Backup all of your MySQL databases on a server individually, then package them [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll start by saying this is not all my own code, it is based on dagon design&#8217;s original release in 2007 (<a href="http://www.dagondesign.com/articles/automatic-mysql-backup-script/">Automatic MySql Backup Script</a>) but this version builds on their version 2.1 to add FTP support.</p>
<p>What this script can do:</p>
<ul>
<li>Backup all of your MySQL databases on a server individually, then package them into a single tar.</li>
<li>Save that tar locally, on a FTP server or even email it to you</li>
</ul>
<p>What you need:</p>
<ul>
<li>PHP</li>
<li>MySQL</li>
<li>Preferably the root mysql login &amp; password (allows you to backup all databases in one go)</li>
</ul>
<p>I do not guarantee:</p>
<ul>
<li>That this will definately work on your server, or Windows servers out of the box.</li>
</ul>
<p>However it is here for people to use. I have tested it on several linux machines and it runs great.</p>
<h2>Download:</h2>
<p>Zip containing dbbackup.php &amp; dbbackupconfig.php &#8211; <a href="http://3cc.org/wp-content/uploads/2010/04/dbbackup.zip">dbbackup.zip</a></p>
<h2>What I&#8217;ve added:</h2>
<p>To upload to a remote FTP server, I added this to the config file:</p>
<pre class="brush: php">######################################################################
## FTP Options
######################################################################

// Use FTP Option?
$useftp = true;

// Use passive mode?
$usepassive = true;

// FTP Server Address
$ftp_server = 'host';

// FTP Username &amp; Password
$ftp_user_name = 'username';
$ftp_user_pass = 'password';
</pre>
<p>and this to the main file below email sending:</p>
<pre class="brush: php">// do we ftp the file?
if ($useftp == true) {
$file = $BACKUP_DEST.'/'.$BACKUP_NAME;
$remote_file = $BACKUP_NAME;

// set up basic connection
$conn_id = ftp_connect($ftp_server);

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

// turn passive mode on?
ftp_pasv($conn_id, $usepassive);

// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_BINARY)) {
 echo "successfully uploaded to ftp: $remotefile\n";
} else {
 echo "There was a problem while uploading $remotefile\n";
}

// close the connection
ftp_close($conn_id);
}</pre>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3cc.org/2010/04/automatic-local-ftp-email-backups-of-mysql-databases-with-cron/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Godaddy FTP Backup Servers &#8211; Dedicated Plesk Server</title>
		<link>http://www.3cc.org/2008/09/godaddy-ftp-backup-servers-dedicated-plesk-server/</link>
		<comments>http://www.3cc.org/2008/09/godaddy-ftp-backup-servers-dedicated-plesk-server/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 00:00:39 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[ftp backup]]></category>
		<category><![CDATA[ftp over SSH]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh tunnel]]></category>

		<guid isPermaLink="false">http://www.3cc.org/backyard/?p=4</guid>
		<description><![CDATA[One of our clients recently had an issue where his Godaddy FTP Backup Server was full &#8211; causing his seperate dedicated Plesk Server to fill up it&#8217;s own Drive with Temp files, while at the same time use a lot of resources trying to put files to the full FTP backup server. You can sign [...]]]></description>
			<content:encoded><![CDATA[<p>One of our clients recently had an issue where his Godaddy FTP Backup Server was full &#8211; causing his seperate dedicated Plesk Server to fill up it&#8217;s own Drive with Temp files, while at the same time use a lot of resources trying to put files to the full FTP backup server.</p>
<p>You can sign up for a remote backup server when you order a godaddy hosting service, and it does sound a good idea considering it should keep your data safe. You can only access the data on the FTP server from within the Godaddy network &#8211; stopping any outside access.</p>
<p>When Plesk attempts to connect to a remote FTP server, it first tries to place a file on the server &#8211; which is a no-go if the server is full. This fails of course, so you can&#8217;t even get a directory listing of the remote server through Plesk.</p>
<p>Easy solution though &#8211; connect to your server through SSH and then use commands to connect to the remote FTP through your server.</p>
<ol>
<li>Open your SSH application of choice (we use PuTTY, available free from <a title="PuTTY is a free telnet/ssh client" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_self">greenend.org.uk</a>) and connect to your server. Use your main IP address or your hostname (domain name), depending on what your host supports. For dedicated servers from Godaddy, either can be used.</li>
<li>Once you&#8217;ve logged in with your root username and password, simply enter<br />
<blockquote><p><strong>FTP XXX.XXX.XXX.XXX</strong> (where xxx&#8230;. is the IP address of the FTP server) and hit enter.<br />
then your <strong>login username</strong>, hit enter and then your <strong>login password</strong> (also followed by enter). For Godaddy all of this is available in your Server Management Area.</p></blockquote>
</li>
<li>Now you should be logged on to the server. Type <strong>DIR</strong> and hit enter to produce a list of the directory contents. This also shows file sizes and other details.
<ol>
<li>You can DELETE individual files on the server using the DELETE command. For example, to delete info.php use <strong>DELETE info.php</strong> and hit enter.</li>
<li>To change directories type <strong>CD directoryname/</strong> and hit enter.</li>
<li>To copy a file to your local server type <strong>WGET filename.file</strong> and hit enter. If you don&#8217;t specify a directory then the file will be copied to your server in the /root/ directory. You can access this directory by connecting to your server using PuTTY and typing <strong>DIR</strong> and hitting enter when you&#8217;ve logged in. (It will be in the default directory).</li>
</ol>
</li>
</ol>
<p>That&#8217;s a basic guide, there are many better out there but this follows the basics. There are a couple of useful SSH commands on <a title="Some SSH commands" href="http://www.jiffynet.net/faqs/sshcommands.html" target="_blank">this site</a>, including how to set specific options.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3cc.org/2008/09/godaddy-ftp-backup-servers-dedicated-plesk-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

