<?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>HydTech &#187; backup</title>
	<atom:link href="http://hydtechblog.com/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://hydtechblog.com</link>
	<description>anotha hyd anotha day</description>
	<lastBuildDate>Sun, 24 Jul 2011 22:38:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Backing up my wordpress blog and website using Ubuntu</title>
		<link>http://hydtechblog.com/2009/11/20/backing-up-my-wordpress-blog-and-website-using-ubuntu/</link>
		<comments>http://hydtechblog.com/2009/11/20/backing-up-my-wordpress-blog-and-website-using-ubuntu/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 05:14:42 +0000</pubDate>
		<dc:creator>HydTech</dc:creator>
				<category><![CDATA[Linux (Ubuntu)]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[ubuntu one]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hydtechblog.com/?p=583</guid>
		<description><![CDATA[I&#8217;ve been noticing that my webhost server keeps going down for a few hours every day and it scares me that I&#8217;ll lose all my data. So, I started looking for automatic backup solutions and this is the best way I could come up with. Backing up the wordpress database: I&#8217;ve tried the following plugins [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been noticing that my webhost server keeps going down for a few hours every day and it scares me that I&#8217;ll lose all my data.  So, I started looking for automatic backup solutions and this is the best way I could come up with.</p>
<p>Backing up the wordpress database:</p>
<p>I&#8217;ve tried the following plugins</p>
<p>1. WordPressbackup.com<br />
This plugin backs up my data to their server automatically. only backs up the database though. must register for a free account at wordpressbackup.com.  The backups occur once every few days.</p>
<p>2. Bei-fen<br />
This plugin backs up my data including images and files to a location on my server</p>
<p>3. DBC Backup<br />
Does a cron backup automatically at any location on my server at any time interval I set it for.  Only backs up the database.</p>
<p>4. WP-DB-Backup<br />
Can schedule the database to automatically backup to your server or automatically email them.</p>
<p>5. SMEStorage Backup<br />
Based on WP-DB-Backup. Must register for a free account at http://www.smetube.com/smestorage/ and you can backup your data to a cloud storage service like Amazon S3 or Box.net.  You can even have the backups sent to your email.</p>
<p>Backing up my whole website from my webhost to my computer:</p>
<p>I use a tool call rsync in linux to automatically sync my public_html directory on my webserver to a backup folder on my Computer which is synced automatically with Dropbox.  You can also use Ubuntu One.  For this tutorial your web host must have ssh enabled.  If you can&#8217;t get ssh, then <a href="http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/">backup your wordpress website over ftp with curlftpfs on Linux</a>.</p>
<p>Follow these steps:</p>
<p>1. Sign up for an Ubuntu One account or a <a href="https://www.dropbox.com/referrals/NTkwNzkzMTk">DropBox account</a> and download/install the desktop client. You can get a 2GB account for free.</p>
<p>2. Download the necessary files<br />
<code>sudo apt-get rsync ssh</code></p>
<p>3. Set up autologin with ssh so you won&#8217;t have to enter your password each time.<br />
<code>sudo ssh-keygen -t dsa</code><br />
press enter each time without changing anything.  this will make a id_dsa.pub key in you .ssh folder.<br />
copy the ssh key to your server using scp<br />
<code>scp /home/user/.ssh/id_dsa.pub user@yourserver.com:</code><br />
login to your server using ssh<br />
<code>ssh user@yourserver.com</code><br />
enter password and append the key to authorized_keys<br />
<code>cat id_dsa.pub &gt;&gt; .ssh/authorized_keys</code><br />
remove the key from the home directory on your server<br />
<code>rm id_dsa.pub</code></p>
<p>4. Set up a cron job to sync the public_html folder to your dropbox folder<br />
<code>crontab -e</code> (do not sudo)<br />
open with editor like nano<br />
enter something similar to the following line<br />
<code>* */5 * * * rsync -avz --rsync-path=/usr/bin/rsync -e ssh user@yourserver.com:home/useronserver/public_html /media/sdawhatever/locationof/dropbox/backup/</code><br />
(this is telling cron to sync every 5 hours, for more help with cron check wiki)<br />
press ctrl+O to save file, enter to save, ctrl + X to exit.</p>
<p>thats it, your done!</p>
<img src="http://hydtechblog.com/?ak_action=api_record_view&id=583&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://hydtechblog.com/2009/11/20/backing-up-my-wordpress-blog-and-website-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

