<?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; Webhosting</title>
	<atom:link href="http://hydtechblog.com/category/webhosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://hydtechblog.com</link>
	<description>anotha hyd anotha day</description>
	<lastBuildDate>Sat, 24 Jul 2010 14:33:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic website backup without SSH enabled over FTP</title>
		<link>http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/</link>
		<comments>http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:34:42 +0000</pubDate>
		<dc:creator>HydTech</dc:creator>
				<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[Lenovo S10]]></category>
		<category><![CDATA[Linux (Ubuntu)]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://hydtechblog.com/?p=597</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggMedium' href='http://digg.com/submit?url=http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/&amp;title='Automatic+website+backup+without+SSH+enabled+over+FTP'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/&amp;source=&amp;style=normal' height='61' width='50' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><p>Last time I backed up my website with rsync and ssh, but on my new host they disabled SSH.  Rsync does not work over ftp.  I do not want to do incremental backups with delta files like is done with rdiff-backup or duplicity. I need to have an exact mirror of my site.  But remember that your sql databases won&#8217;t be backed up.</p>
<p>Curlftpfs is the key! In this tutorial I will show you how to backup from one server to a backup location which can be your hard drive, another web host, dropbox folder, Box.net via webdav, etc.</p>
<p>Download curlftpfs, rsync and ncftp:<br />
<code>sudo apt-get install curlftpfs ncftp rsync</code></p>
<p>make directories to mount your ftp server:<br />
<code>sudo mkdir /media/hydtechblog</code><br />
<code>sudo mkdir /media/hydtechbackupserver</code></p>
<p>edit fstab to mount the ftp servers using curlftpfs:<br />
<code>sudo gedit /etc/fstab</code></p>
<p>add the lines and modify them according to your server:<br />
curlftpfs#username:password@hydtechblog.com /media/hydtechblog fuse rw,allow_other,uid=root 0 0<br />
curlftpfs#username:password@hydtechbackupserver /media/hydtechbackupserver fuse rw,allow_other,uid=root 0 0</p>
<p>One thing to remember is that these two will not mount automatically because when the computer restarts, the fstab is done while you are not connected to the network.  To fix this we can just add the mount commands in our crontab.</p>
<p>Edit crontab:<br />
<code>sudo crontab -e</code><br />
enter the following lines and modify accordingly:<br />
00 09 * * * mount /media/hydtechblog<br />
00 09 * * * mount /media/hydtechbackup<br />
01 09 * * * rsync -avz &#8211;rsync-path=/usr/bin/rsync /media/hydtechblog/public_html /media/hydtechbackup/public_html</p>
<p>ctrl + o to write and ctrl + x to save</p>
<p>This will tell cron to mount the folders at 9:00 am and start rsync at 9:01 am.  You can replace the backup location to another folder on your hard drive or your dropbox or ubuntu one folder.  You can also mount box.net with webdav and use this method.</p>
<p>For encrypted incremental backups checkout duplicity, it also works with webdav and ftp.</p>
<!-- Social Buttons Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ --><img src="http://hydtechblog.com/?ak_action=api_record_view&id=597&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://hydtechblog.com/2009/12/03/automatic-website-backup-without-ssh-enabled/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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[]]></description>
			<content:encoded><![CDATA[<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggMedium' href='http://digg.com/submit?url=http://hydtechblog.com/2009/11/20/backing-up-my-wordpress-blog-and-website-using-ubuntu/&amp;title='Backing+up+my+wordpress+blog+and+website+using+Ubuntu'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://hydtechblog.com/2009/11/20/backing-up-my-wordpress-blog-and-website-using-ubuntu/&amp;source=&amp;style=normal' height='61' width='50' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><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>
<!-- Social Buttons Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ --><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>
