<?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>Vegard Hammerseth &#187; external</title>
	<atom:link href="http://vegard.hammerseth.com/tag/external/feed/" rel="self" type="application/rss+xml" />
	<link>http://vegard.hammerseth.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 26 May 2010 22:31:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Backup your data with cron, rsync and lftp</title>
		<link>http://vegard.hammerseth.com/2009/02/backup-your-data-with-cron-rsync-and-lftp/</link>
		<comments>http://vegard.hammerseth.com/2009/02/backup-your-data-with-cron-rsync-and-lftp/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:20:29 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cron-rule]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[lftp]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[wordpress backup plugin]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=335</guid>
		<description><![CDATA[This post will explain how I do my backups. In case my crontab should be deleted or lost, I have the script in an own file. Like in my code-nippets. My computer is only used by me so I only need to backup my home-dir, where I save everything. /dev/sda5 is mounted to /home. This [...]]]></description>
			<content:encoded><![CDATA[<p>This post will explain how I do my backups.</p>
<p>In case my crontab should be deleted or lost, I have the script in an own file. Like in my code-nippets.</p>
<p>My computer is only used by me so I only need to backup my home-dir, where I save everything. /dev/sda5 is mounted to /home.</p>
<p>This script backups my home directory to one of my external harddrives, as long as the backup dir on the disk hasn&#8217;t been edited the last day and rsync is not running. Off course, rsync could run in other situations, but I don&#8217;t want to run two rsync&#8217;s at once and is therefore added as a case. It would probably consume all the bandwidth on my laptop when running two rsyncs on my slow 5400rpm harddrive.</p>
<p><code>if [ -d "/media/WD Elements/backup/" ] &amp;&amp; [ -z "`ps --no-heading -C rsync`" ] &amp;&amp; [ "`ls -ld /media/WD\ Elements/backup | awk '{print $6}'`" != "`date '+%Y-%m-%d'`" ];<br />
then<br />
rsync -au --force --delete-during /home/vegard/. /media/WD\ Elements/backup;<br />
fi</code></p>
<p>Code above is from &#8220;/home/vegard/Linux/backup.sh&#8221; which runs every 5 min, using crontab. Use `crontab -e` to insert your cron-rule.</p>
<p><code>*/5 * * * * /bin/bash /home/vegard/Linux/backup.sh</code></p>
<p>Keeping backup of your webhotel is also important, and since I&#8217;m allowed ssh access to mine I can use sftp to download my files.</p>
<p>In &#8220;/home/vegard/Linux/sftp.sh&#8221; i have:<br />
<code>lftp -e "mirror . /home/vegard/Backup/hammerseth.com/" sftp://&lt;user&gt;@&lt;host&gt;/path</code></p>
<p>For the password, you can use ssh-keyrigs or if you dare <code>sftp://&lt;user&gt;:&lt;passwd&gt;@&lt;host&gt;/path</code></p>
<p>The file above is run each sunday at 18:00 with this cron-rule<br />
<code>0 18 * * 0 /bin/bash /home/vegard/Linux/sftp.sh</code></p>
<p>I should also mention that I&#8217;m using a wordpress-plugin called <a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a> which mails all my database tables to my email, every week. Quite handy.</p>
<p>Be safe.</p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2009/02/backup-your-data-with-cron-rsync-and-lftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>External LaCie harddrive and KINGSTON USB-stick</title>
		<link>http://vegard.hammerseth.com/2008/12/external-lacie-harddrive-and-kingston-usb-stick/</link>
		<comments>http://vegard.hammerseth.com/2008/12/external-lacie-harddrive-and-kingston-usb-stick/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 16:58:59 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Unbox]]></category>
		<category><![CDATA[1TB]]></category>
		<category><![CDATA[8gb]]></category>
		<category><![CDATA[datatraveler]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[kingston]]></category>
		<category><![CDATA[lacie]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=227</guid>
		<description><![CDATA[I got my package from Datakjeden today. I put my order up on sunday so the handling and shipment has been great. The disk looks pretty awesome, like glas and has the same elegance as an iPhone. Unfortunately the blue light is blinking when the disk is working. I wouldn&#8217;t mind if it was still [...]]]></description>
			<content:encoded><![CDATA[<p>I got my package from <a href="http://www.datakjeden.no/">Datakjeden</a> today. I put my order up on sunday so the handling and shipment has been great.</p>
<p>The <a title="LaCie Hard Disk 1 TB USB2" href="http://lh6.ggpht.com/_kHz6hsl_gy8/STbEhmbpuII/AAAAAAAABEg/7NOSVpYTFhY/plate2.jpg">disk</a> looks pretty awesome, like glas and has the same elegance as an iPhone. Unfortunately the blue light is blinking when the disk is working. I wouldn&#8217;t mind if it was still during usage. Something other that bothers me is the noise, it produce some ugly noises, but was really expecting. Partition tables on is another chapter, you can view it on the image in my gallery below.</p>
<p><a title="Kingston DataTraveler 100 8 GB " href="http://prisguide.tek.no/product.php?productId=83266">KINGSTON 8GB DataTraveler</a> works awesome, it&#8217;s fast enough and work like it should despite it&#8217;s plastic-feel. All in all is the devices great for it&#8217;s prices and I wouldn&#8217;t hesitate to buy them again.</p>
<table style="width: 194px;" border="0">
<tbody>
<tr>
<td style="background: transparent url(http://picasaweb.google.com/f/img/transparent_album_background.gif) no-repeat scroll left center; height: 194px;" align="center"><a href="http://picasaweb.google.com/v.hammerseth/LACIEDiskAndKINGSTONDatatraveler#"><img style="margin:1px 0 0 4px;" src="http://lh3.ggpht.com/_kHz6hsl_gy8/STaK5Vxw0WE/AAAAAAAABB8/VXZOZWbcisY/s160-c/LACIEDiskAndKINGSTONDatatraveler.jpg" alt="" width="160" height="160" /></a></td>
</tr>
<tr>
<td style="text-align:center;font-family:arial,sans-serif;font-size:11px"><a style="color:#4D4D4D;font-weight:bold;text-decoration:none;" href="http://picasaweb.google.com/v.hammerseth/LACIEDiskAndKINGSTONDatatraveler#">LACIE disk and KINGSTON datatraveler</a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2008/12/external-lacie-harddrive-and-kingston-usb-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
