<?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>Brandon W. King&#039;s Blog &#187; backup</title>
	<atom:link href="http://www.brandonking.net/blog/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonking.net/blog</link>
	<description>Blogging about Python, Bioinformatics, Programming, System Administration, Cognitive Science, Philosophy and Life</description>
	<lastBuildDate>Wed, 09 Dec 2009 01:24:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rescuing a Linux installation</title>
		<link>http://www.brandonking.net/blog/2007/01/30/rescuing-a-linux-installation/</link>
		<comments>http://www.brandonking.net/blog/2007/01/30/rescuing-a-linux-installation/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 00:35:00 +0000</pubDate>
		<dc:creator>Brandon W. King</dc:creator>
				<category><![CDATA[Computers/IT]]></category>
		<category><![CDATA[Error Fixes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[debootstrap]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[system adminstration]]></category>

		<guid isPermaLink="false">http://blog.brandonking.net/?p=24</guid>
		<description><![CDATA[In an attempt to save a system without doing a fresh reinstall by copying the contents from dying hard drive to new hard drive using external hard drive enclosure. This method seems to have worked well for me. I&#8217;m posting it as reference so others have a guide to work from and improve upon. I [...]]]></description>
			<content:encoded><![CDATA[<p>In an attempt to save a system without doing a fresh reinstall by copying the contents from dying hard drive to new hard drive using external hard drive enclosure. This method seems to have worked well for me. I&#8217;m posting it as reference so others have a guide to work from and improve upon. I have only used this method once so make sure you know what you are doing if you follow the guide.</p>
<p>WARNING: Use the following formation at your own risk. Make sure you make proper backups. The following information may have errors or may not work properly<span style="font-weight: bold;"> and could possibly <span style="font-style: italic;">damage your system</span> or <span style="font-style: italic;">cause the loss of data</span>. Once again, <span style="font-style: italic;">use the following at your own risk</span>. Research how to use each individual command so you know what you are doing.</span></p>
<p><span style="font-weight: bold;">Guide to moving a Debian or Ubuntu Linux installation from an old hard drive to a new hard drive without re-installing.</span></p>
<ol>
<li>Attach external hard drive</li>
<li>Reboot computer into single user mode (i.e. rescue mode)</li>
<li>Find the new device of the external hard drive (probably sda or sdb) dmesg | grep hd; dmesg | grep sd</li>
<li>create new partions on new drive: fdisk /dev/sd(a,b, etc.)
<ol>
<li>create swap partition</li>
<li>create linux partition(s)</li>
</ol>
</li>
<li>initialize swap: mkswap</li>
<li>create filesystem (I&#8217;m using ext3): mkfs.ext3</li>
<li>Mount the new hard drive (referred to as /dev/sda2 from now on): mount -t ext3 /dev/sda2 /mnt</li>
<li>Use debootstrap to get base install (ubuntu edgy example): debootstrap edgy /mnt http://us.archive.ubuntu.com/ubuntu</li>
<li>Now the copy command: rsync -av &#8211;exclude=/dev &#8211;exclude=/sys &#8211;exclude=/mnt &#8211;exclude=/proc &#8211;exclude=/media / /mnt</li>
<li>Make partition bootable: fdisk /dev/sda2  # use the &#8216;a&#8217; option</li>
<li>Shutdown system and put in the new drive.</li>
<li>Get Grub working again:
<ol>
<li>Insert Ubuntu or other Debian based live CD (Knoppix is a good choice too).</li>
<li>Mount the new drive: mount -t ext3 /dev/hda2 /mnt</li>
<li>Install grub: install-grub &#8211;root-directory=/mnt /dev/hda2</li>
<li>chroot into new drive: chroot /mnt</li>
<li>edit /boot/grub/menu.lst
<ol>
<li>Update groot(hd0,)  #if bootable partition changed (i.e. Was /dev/hda5 is now /dev/hda2&#8230; Old: <span style="font-weight: bold;">groot(hd0,4)</span> New: <span style="font-weight: bold;">groot(hd0,1)</span></li>
<li>Update kopt=root #if bootable partition changed (i.e. Was /dev/hda5 is now /dev/hda2&#8230;  Old: <span style="font-weight: bold;">kopt=root=UUID=</span> or <span style="font-weight: bold;">kopt=root=/dev/hda5</span> New:  <span style="font-weight: bold;">kopt=root=/dev/hda2</span> (NOTE: There is probably a way of getting the new UUID of the new partition, in which case you can just update the UUID option, but I don&#8217;t know enough about this yet to offer advice&#8230; Feel free to post a comment if you know more.)</li>
</ol>
</li>
<li>type: update-grub</li>
</ol>
</li>
<li>Reboot and hope everything works properly.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.brandonking.net/blog/2007/01/30/rescuing-a-linux-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bacula: Failed to connect to Storage daemon</title>
		<link>http://www.brandonking.net/blog/2006/08/31/bacula-failed-to-connect-to-storage-daemon/</link>
		<comments>http://www.brandonking.net/blog/2006/08/31/bacula-failed-to-connect-to-storage-daemon/#comments</comments>
		<pubDate>Thu, 31 Aug 2006 17:38:00 +0000</pubDate>
		<dc:creator>Brandon W. King</dc:creator>
				<category><![CDATA[Computers/IT]]></category>
		<category><![CDATA[Error Fixes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bacula]]></category>

		<guid isPermaLink="false">http://blog.brandonking.net/?p=14</guid>
		<description><![CDATA[I loaded up bconsole this morning to check the status of the full backups that were suppose to run last night and found out that all of the backups had failed. The error message: &#8220;Failed to connect to Storage daemon&#8221;
I discovered that bacula-sd (storage daemon) was only listening to 127.0.0.1. Then I changed it to [...]]]></description>
			<content:encoded><![CDATA[<p>I loaded up bconsole this morning to check the status of the full backups that were suppose to run last night and found out that all of the backups had failed. The error message: &#8220;Failed to connect to Storage daemon&#8221;</p>
<p>I discovered that bacula-sd (storage daemon) was only listening to 127.0.0.1. Then I changed it to the full qualified domain for the server, and the client file daemon still failed to connect to the storage daemon (form WinXP boxes). Then I changed it to the ip address of the server and everything started to work properly.</p>
<p>Config files I changed:</p>
<p>bacula-dir.conf:</p>
<ul>
<li>Storage directive
<ul>
<li>Address         #changed to bacula-sd server ip address</li>
</ul>
</li>
</ul>
<p>bacula-sd.conf:</p>
<ul>
<li>Storage directive
<ul>
<li>SDAddress    #changed to bacula-sd server ip address</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brandonking.net/blog/2006/08/31/bacula-failed-to-connect-to-storage-daemon/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open Source Network Backup Software: Bacula</title>
		<link>http://www.brandonking.net/blog/2006/08/29/open-source-network-backup-software-bacula/</link>
		<comments>http://www.brandonking.net/blog/2006/08/29/open-source-network-backup-software-bacula/#comments</comments>
		<pubDate>Wed, 30 Aug 2006 00:40:00 +0000</pubDate>
		<dc:creator>Brandon W. King</dc:creator>
				<category><![CDATA[Computers/IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Software Endorsements]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bacula]]></category>

		<guid isPermaLink="false">http://blog.brandonking.net/?p=13</guid>
		<description><![CDATA[After getting tired of maintaining and updating a custom Python based backup network script that used smbclient to backing up WinXP machines using samba, I decided to look into open source solutions. I found two high-end open source network based backup solutions that handle WinXP, Mac OS X, and Linux machines:

AMANDA
Bacula (My choice &#8212; reason [...]]]></description>
			<content:encoded><![CDATA[<p>After getting tired of maintaining and updating a custom <a href="http://www.python.org">Python</a> based backup network script that used <a href="http://samba.org/samba/docs/man/manpages-3/smbclient.1.html">smbclient</a> to backing up WinXP machines using samba, I decided to look into open source solutions. I found two high-end open source network based backup solutions that handle WinXP, Mac OS X, and Linux machines:</p>
<ul>
<li><a href="http://www.amanda.org/">AMANDA</a></li>
<li><a href="http://www.bacula.org/">Bacula</a> (My choice &#8212; reason in a moment)</li>
<li>[update: 2006Aug31] <a href="http://backuppc.sourceforge.net/">BackupPC</a></li>
</ul>
<p>AMANDA has it&#8217;s advantages, including paid enterprise support through <a href="http://www.zmanda.com/">Zmanda</a>, which maybe be important to people in the business world.</p>
<p>The main reason why I choose bacula is because AMANDA uses samba for connecting to WinXP clients and I have one pesky WinXP box which came with some high-end biology equipment and therefore the company we bought it from decided to mangle WinXP enough that samba from Linux won&#8217;t connect to it. And for the fear of bringing down an important piece of biology equipment, I have decided to not mess with that machine more than I need to. Bacula runs a file daemon (a.k.a. &#8217;service&#8217; for you Windows users) which gets me past the samba problem. So, if you were looking here for me to tell you which one is better, I really don&#8217;t know. I haven&#8217;t tried AMANDA yet.</p>
<p>The other feature that really sold me is the <a href="http://www.bacula.org/rel-manual/Python_Scripting.html">Python scripting ability built into Bacula</a> for extending the backup process.</p>
<p>Bacula seems to work great&#8230; Although the big test will be coming in next day to three months. I just finished setting up a bacula server and 7 clients&#8230; 6 WinXP clients and 1 Kubuntu client.</p>
<p>Quick overview:<br />
Bacula consists of three daemons:</p>
<ol>
<li>director (runs the show)</li>
<li>storage (manages storage pools &amp; volumes: disk, tape, DVD, etc.)</li>
<li>file (client side backup daemon/service)</li>
</ol>
<p>What&#8217;s confusing about bacula at first is it&#8217;s concept of &#8216;pools&#8217; and &#8216;volumes&#8217;. My original thought was that &#8216;pools&#8217; and &#8216;volumes&#8217; were meant for tape drives and that I would only need one pool with one volume since I wanted to use file based storage on a raid-5 hard drive setup. As it turns out, it is convenient to use different pools for full, incremental, and differential backups. Also, within a pool, by putting multiple volumes (i.e. multiple disk files for it to write the backups to), you can set it up to recycle used volumes after a set amount of time! What does this mean for me&#8230; If I have enough hard drive space, it will just reuse the space over and over again. If everything is going well, I won&#8217;t have to worry about backups. Automation is wonderful! Oh, and it does e-mail me when something goes wrong and there is this &#8216;bconsole&#8217; which allows you to trigger backups, check backup status, create new pools/volumes and much much more!</p>
<p>Here is my pool/volume setup:</p>
<p><span style="font-weight: bold;">FullPool:<br />
</span>3 Volumes<br />
28 Day Use<br />
56 Day Expire</p>
<p><span style="font-weight: bold;">IncPool:</span><br />
12 Volumes<br />
7 Day Use<br />
28 Day Expire</p>
<p><span style="font-weight: bold;">DiffPool:</span><br />
4 Volumes<br />
13 Day Use<br />
28 Day Expire</p>
<p>Note that I only need a full backup to last a month and I have three volumes, so I should always have two full backups and the third will be recycled.</p>
<p>Here is the key schedule I use in the bacula-dir.conf:</p>
<p>Schedule {<br />
Name = &#8220;WeeklyCycle&#8221;<br />
Run = Level=Full Pool=FullBackupPool 1st sun at 23:05<br />
Run = Level=Differential Pool=DiffPool 3rd-5th sun at 23:05<br />
Run = Level=Incremental Pool=IncPool mon-sat at 23:05<br />
}</p>
<p>Let me know if you would like me to post additional information.<br />
<span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><br />
</span></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brandonking.net/blog/2006/08/29/open-source-network-backup-software-bacula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
