<?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>TechKnack &#187; backup</title>
	<atom:link href="http://techknack.net/category/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://techknack.net</link>
	<description>The rantings of a techie</description>
	<lastBuildDate>Thu, 24 Dec 2009 19:53:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Backup Success Story</title>
		<link>http://techknack.net/a-backup-success-story/</link>
		<comments>http://techknack.net/a-backup-success-story/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 05:55:36 +0000</pubDate>
		<dc:creator>eternicode</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://techknack.net/?p=215</guid>
		<description><![CDATA[Well, it may be a horror story, depending on how you look at it.
Way back in 2004, my parents, like so many other consumers, ditched their old computer and bought a new one, a Systemax Venture with 512MB RAM (if I recall correctly &#8212; they upgraded to 2GB some time ago), a 2.5GHz processor, and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it may be a horror story, depending on how you look at it.</p>
<p>Way back in 2004, my parents, like so many other consumers, ditched their old computer and bought a new one, a Systemax Venture with 512MB RAM (if I recall correctly &#8212; they upgraded to 2GB some time ago), a 2.5GHz processor, and a 50GB hard drive with a 10GB &#8220;recovery partition&#8221;.  In the five years that they&#8217;ve had it, I&#8217;ve been their tech support &#8212; which is probably the reason it&#8217;s lasted five years in the first place.  Those same five years were when I started growing excessively curious about computers, so it&#8217;s taken its share of poking and prodding (though probably not as much as my own machine, which ultimately got its drive split into several partitions and linux installed on it <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>After so much &#8220;experimentation&#8221;, it recently seemed to have given up.  It came down with a case of constant rebooting, a very common issue which happens when XP&#8217;s &#8220;automatic reboot-on-error&#8221; feature is enabled, and it throws fatal errors constantly.  What happens is an error is thrown, so it reboots.  But, of course, nothing was done to correct the error, so it is thrown again, causing a reboot.  Normally, we could get 15 minutes of uncertain &#8220;working state&#8221;, before the thing would either lock up (followed by us pressing the power button) or reboot itself, and that was when we were lucky.</p>
<p>A temporary fix that I found was to perform manual system restores on the hard drive, which involved hooking the drive up to another computer, going into the filesystem, and moving system files around.  It worked the first few times, but the main problem always came back after a while.</p>
<p>There were a couple of times when I suspected it might be an overheating problem.  I would boot into the bios and pull up the &#8220;PC Health Status&#8221; screen, which gave fan speeds and CPU temperature, and wait for it to lock up again.  I believe there was one time the temperature got above 200 degrees Fahrenheit, even.  With this revelation, we replaced the fan.  The replacement worked well, but, inevitably, other problems developed.</p>
<p>It started its constant reboot syndrome again, but this time even system restores wouldn&#8217;t work.  It got to the point where it was unusable, so in leu of unstable Windows, I burnt and booted an Ubuntu livecd.  Since there was hardly extra space on the original HD, they just ran off the livecd.  That worked for a while, allowing them the basic necessities of the internet (they had already been using FireFox at that point) and document editing (which documents they saved to a flash drive), until even Ubuntu started kernel-panicing, seemingly spontaneously.</p>
<p>It was at this point that they were ready to buy a new computer.  Not because they wanted a new computer.  Because they were sick of the old one not working, the common &#8220;excuse&#8221; to buy a new computer <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>What about the &#8220;recovery partition&#8221;, you ask?  After all, surely the OEM put it there for a reason?  Well, I had come into posession of an older 60GB hard drive, and then I discovered dd, a linux &#8220;block copying&#8221; program.  Long before the machine became unusable, I used dd to clone the original 50GB drive to the 60GB drive, and ran the recovery program, just to see how it worked.  After the recovery program did its thing, I was asked to reboot.  Upon reboot &#8230; the OS wouldn&#8217;t boot.  Period.  Can you blame me for not wanting to try that on the &lt;i&gt;original&lt;/i&gt; hard drive?</p>
<p>Fortunately, about December of 2007, I had discovered &#8212; and experimented with &#8212; partimage, a linux-based partition imager.  I had made backups of a few partitions from a few computers, and stored them on my external 500GB hard drive for future reference.  As luck would have it, one of those partitions was the main 40GB partition from this computer.  You can imagine my hope, curiosity, and anticipation when I (re)discovered this.</p>
<p>I promptly made two backups of the 40GB main partition on the drive &#8212; one partimage backup, and a complete file system copy to a folder on the external drive &#8212; and began the process of restoring the partition to its December 2007 state.</p>
<p>The restore was successful.  The computer booted fine, and here nearly a week later it still works great.  No more constant reboots.  There were a few minor issues &#8212; like account settings that were lost, and the fact that it had reverted to a pre-SP2 state &#8212; but the filesystem copy I had made contained any files they might want to retrieve.</p>
<p>The moral of this success story is the same as the moral of any &#8220;backup horror story&#8221; &#8212; backup, backup, backup!  You never know when you&#8217;ll lose data, your system will become unusable, or &lt;a href=&#8221;http://lifehacker.com/5122848/hard-lessons-in-the-importance-of-backups-journalspace-wiped-out#viewcomments&#8221;&gt;a paranoid employee will wipe all your hard drives clean&lt;/a&gt;.  You just can&#8217;t know.</p>
<p>The horror part?  Well, my parents are still using Windows XP on that five-year-old computer.  I wasn&#8217;t quite able to convince them to use Ubuntu for everything <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .  Oh, well&#8230;</p>
<img src="http://techknack.net/?ak_action=api_record_view&id=215&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://techknack.net/a-backup-success-story/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install the Latest rdiff-backup</title>
		<link>http://techknack.net/install-the-latest-rdiff-backup/</link>
		<comments>http://techknack.net/install-the-latest-rdiff-backup/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 00:53:02 +0000</pubDate>
		<dc:creator>eternicode</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://techknack.net/?p=165</guid>
		<description><![CDATA[Lately, I&#8217;ve been setting up a home computer backup system using rdiff-backup.  I use rdiff-backup because it stores incremental backups and it can send the backups to a remote server over SSH.  This means that, once you get passwordless SSH running, you can set up various cron jobs to backup your files to [...]]]></description>
			<content:encoded><![CDATA[<p>Lately, I&#8217;ve been setting up a home computer backup system using rdiff-backup.  I use rdiff-backup because it stores incremental backups and it can send the backups to a remote server over SSH.  This means that, once you get <a href="blogs.translucentcode.org/mick/archives/000230.html ">passwordless SSH</a> running, you can set up various cron jobs to backup your files to your server every once in a while.</p>
<p>The latest version in the Ubuntu Hardy repos is version 1.1.15-1.  I&#8217;ve been having problems with this version when trying to list increments over SSH; it would, consistently, exit with a &#8220;No such file or directory&#8221; error whenever I tried to &#8220;rdiff-backup -l server::/path/to/backup&#8221;.  I couldn&#8217;t find <i>any</i> info on this problem on the net, let alone a solution.  I did, however, find a mailing list entry announcing the <a href="http://www.mail-archive.com/rdiff-backup-users@nongnu.org/msg03036.html">release of rdiff-backup 1.1.16</a>.  After further googling, I found some <a href="https://launchpad.net/ubuntu/intrepid/i386/rdiff-backup/1.1.16-2">rdiff-backup 1.1.16 deb files</a> for Ubuntu Hardy.  Download, install on all computers that use it, and, voila, I can list increments remotely! <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://techknack.net/?ak_action=api_record_view&id=165&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://techknack.net/install-the-latest-rdiff-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maintain Your Linux Desktop Through a Fresh Install</title>
		<link>http://techknack.net/maintain-your-linux-desktop-through-a-fresh-install/</link>
		<comments>http://techknack.net/maintain-your-linux-desktop-through-a-fresh-install/#comments</comments>
		<pubDate>Fri, 02 May 2008 03:10:00 +0000</pubDate>
		<dc:creator>eternicode</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.techknack.net/maintain-your-linux-desktop-through-a-fresh-install/</guid>
		<description><![CDATA[This article assumes, for the most part, a reasonable familiarity with sudo, cp, mv, and other simple command line commands.  It also assumes that you backup your important data, as any experienced computer user will tell you to.  In addition to your important data, you should backup the new versions of the discussed [...]]]></description>
			<content:encoded><![CDATA[<p><em>This article assumes, for the most part, a reasonable familiarity with sudo, cp, mv, and other simple command line commands.  It also assumes that you <strong>backup your important data</strong>, as any experienced computer user will tell you to.  In addition to your important data, you should backup the new versions of the discussed system files, for the simple case that you mistype something and your Ubuntu won&#8217;t boot, you can go in with a LiveCD and restore the fresh-install-version without much trouble.</em></p>
<p>With the <a href='http://techknack.blogspot.com/2008/04/hardy-heron-up-for-download.html'>release of Hardy Heron</a>, many X/K/Ubuntu users will upgrade to the new version.  Many already have.  While an actual upgrade is possible, my preferred method of &#8220;upgrading&#8221; is through a fresh install.  This resets everything to &#8220;factory settings&#8221;, as it were, getting rid of any junk left lying around from your various tweakings.  A fresh start, so to speak.  But what about your already carefully-crafted desktop experience?  In my experience, I&#8217;ve found that there are a number of things you can do to maintain your desktop through a fresh install.</p>
<p>The main thing you&#8217;ll want to do is create a /home partition.  PsychoCats has <a href='http://www.psychocats.net/ubuntu/separatehome'>an excellent guide on moving your existing home directory</a>.  On my system (60GB hard drive), I have allocated about 5GB to my root ( / ) partition, various small amounts to a couple of other partitions, and the rest to my /home partition.  Currently (using Kubuntu Gutsy and after installing/uninstalling several programs), I use about 4GB of that 5GB.  The benefits of a separate /home partition is that, since all your personal settings and files are stored there, you can safely leave that data untouched during the install.</p>
<p>The next thing to do is to backup all your system-wide settings.  This includes your wallpapers (if you&#8217;re into that sorta thing), sources.list, xorg.conf, fstab, and possibly your grub menu.lst.  These are the main things that normally need reconfigured after a fresh install.  You can create a new directory on your desktop (which won&#8217;t be erased if you have a separate partition for it), and put all the backups in there, so they&#8217;re easy to get to when you&#8217;re ready to restore them.</p>
<p>If you&#8217;re into <a href='http://browse.deviantart.com/?catpath=customization/wallpaper&#038;q=sort:time'>collecting wallpapers</a>, you&#8217;ll likely want to backup your collection.  Whenever I switch to a new wallpaper, I first put it in /usr/share/wallpapers.  If you do the same, you can simply copy this folder to the new folder on your desktop.  For the rest of the backups, just copy /etc/apt/sources.list, /etc/X11/xorg.conf, /etc/fstab, and /boot/grub/menu.lst to the folder on your desktop.  You can use the folowing commands to do it all relatively quickly:</p>
<pre class="brush: bash;">
$ cd ~/Desktop/
$ mkdir backups
$ cp -r /usr/share/wallpapers /etc/apt/sources.list /etc/X11/xorg.conf /etc/fstab /boot/grub/menu.lst ~/Desktop/backups/
</pre>
</p>
<p>A quick explanation of the files to backup: the sources.list tells apt-get where to search for available software.  I use several programs which are not in the official Ubuntu repos, and this usually involves adding third-party repos to my sources.list file.  I like to back this file up so I don&#8217;t have to go hunting yet again for the repo info.</p>
<p>The xorg.conf file holds your display settings and other settings relating to on-screen display (such as mouse configuration).  Every time I reinstall on my notebook, I have to go in and manually modify the xorg.conf file to enable horizontal scrolling on my synaptics touchpad.  Backing up the file allows for quick and easy editing, instead of trying to remember my settings.</p>
<p>Fstab specifies automount details for various partitions.  I have two partitions other than my root and home partitions that are setup to automount, as well as several Windows shares that are specified in fstab so as to automate mounting them.</p>
<p>You really only want to backup your grub menu.lst if you have manually modified it for whatever reason (for example, if you have a <a href='http://users.bigpond.net.au/hermanzone/p15.htm#How_to_make_a_separate_Grub_Partition_'>dedicated grub boot partition</a>).  If you normally let Ubuntu auto-config the boot options and don&#8217;t touch it afterwards, you probably don&#8217;t need or want to back it up.</p>
<p>Install X/K/Ubuntu as normal, specifying your home and root partitions, and <b>ensuring that the installer does NOT format the home partition</b>.  You will be required to format the root partition.  During the install, you will also want to create any user accounts that you had before, in the same order that you previously created them.  User recreation can also be done after you boot into your fresh install, by using the <a href='http://linux.about.com/od/commands/l/blcmdl8_useradd.htm'>useradd</a> and <a href='http://linux.about.com/od/commands/l/blcmdl8_usermod.htm'>usermod</a> commands.</p>
<p>After the install, boot into your shiny new installation.  Since you&#8217;ll need to use root privileges (sudo) to re-integrate your files, you may want to log into a fail-safe desktop.  This will give you a command line window, but no window decorations, panels, etc.  You won&#8217;t need them anyway, yet.  To view the contents of files, use the &#8220;nano&#8221; text editor.  <b>Do not simply copy all the files back to their original positions.</b>  When a distro is upgraded (or reinstalled), system files have a tendency to get modified (case in point: your sources.list).  What you want to do is compare the differences between the old and new files, and make changes as appropriate.</p>
<p>First, move your wallpapers back.  You can do this without deleting any new, &#8220;official&#8221; wallpapers by running the command</p>
<pre class="brush: bash;">
$ sudo cp -r ~/Desktop/backups/wallpapers/* /usr/share/wallpapers/
</pre>
</p>
<p>For the sources.list&#8230;well&#8230;I don&#8217;t know of any good way to check for updated repos, other than to change the &#8220;gutsy&#8221; to &#8220;hardy&#8221; for each repo line, and run &#8220;apt-get update&#8221;.  If the repo doesn&#8217;t exist, you&#8217;ll get some output like:</p>
<pre class="brush: bash;">
Ign http://repo.freecreations.info hardy Release.gpg
Ign http://repo.freecreations.info hardy/freeverse Translation-en_US
Ign http://repo.freecreations.info hardy Release
Ign http://repo.freecreations.info hardy/freeverse Packages
Err http://repo.freecreations.info hardy/freeverse Packages
  404 Not Found
</pre>
<p>From there, you <em>could</em> try to pull software from your previously-used gutsy repos, but I really have no clue how stable that would be <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Moving on to xorg.conf.  Simply look into your backup file, find out the settings you want, and add those to the appropriate places in the new xorg.conf.  You will need to use sudo to edit /etc/X11/xorg.conf with root privileges.  The same goes for your grub menu.lst.</p>
<p>For fstab, unless you made some change to your partitions between backing up and reinstalling, you should be able to simply &#8220;sudo cp&#8221; your old fstab over your new fstab.  Of course, you should backup the new fstab, just to be safe, and compare all the numbers afterwards to make sure everything will work after your next reboot.</p>
<p>Now that you&#8217;ve restored all your settings, you should be able to reboot, log into your normal session, and enjoy your familiar desktop experience under the new distro.  After reinstalling all your software, of course <img src='http://techknack.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>If you find any part of this guide to be lacking in detail, <strong>first use Google</strong>, secondly email me at andrew at techknack.net or post in the comments.  <del>As of this post, I have not, myself, upgraded to Hardy, but I did use this very method to upgrade from Feisty to Gutsy, and I believe this process to still be good for the current distros.</del></em></p>
<img src="http://techknack.net/?ak_action=api_record_view&id=124&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://techknack.net/maintain-your-linux-desktop-through-a-fresh-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up Thunderbird or Firefox profiles</title>
		<link>http://techknack.net/backing-up-thunderbird-or-firefox-profiles/</link>
		<comments>http://techknack.net/backing-up-thunderbird-or-firefox-profiles/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 20:31:00 +0000</pubDate>
		<dc:creator>eternicode</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://blog.techknack.net/backing-up-thunderbird-or-firefox-profiles/</guid>
		<description><![CDATA[The mantra of the Linux world is &#8220;Always backup important data!!!&#8221;  This is usually instructed directly before installing Linux onto a system, or otherwise doing anything that could even remotely corrupt anything.  Better to be safe than sorry.
Backing up a Thunderbird or Firefox profile is important, too.  Especially if you&#8217;re like me, [...]]]></description>
			<content:encoded><![CDATA[<p>The mantra of the Linux world is &#8220;Always backup important data!!!&#8221;  This is usually instructed directly before installing Linux onto a system, or otherwise doing <i>anything</i> that could even <i>remotely</i> corrupt <i>anything</i>.  Better to be safe than sorry.</p>
<p>Backing up a Thunderbird or Firefox profile is important, too.  Especially if you&#8217;re like me, and it would take <i>hours</i> to get Firefox <i>just perfect</i> again after having your profile wiped (if, for example, the drive it was sitting on were to fall to minor corruption).  Hunting down that perfect theme (what was it called again?), rounding up <b>all</b> those can&#8217;t-live-without extensions&#8230;</p>
<h3>Under Windows</h3>
<p>Under Windows XP (and presumably Vista as well), the default profile for Firefox is found under <i>C:\Documents and Settings\&lt;user&gt;\Application Data\Mozilla\Firefox\Profiles\XXXXXX.default</i>, where that last XXXXX is a random string of numbers.  Thunderbird&#8217;s profile is located under <i>C:\Documents and Settings\&lt;user&gt;\Application Data\Thunderbird\Profiles\XXXXXX.default</i>.  If you&#8217;ve used &#8220;firefox -ProfileManager&#8221; or &#8220;thunderbird -ProfileManager&#8221; to change your profiles around, these will be different.</p>
<h3>Under X/K/Ubuntu</h3>
<p>Under Kubuntu (and presumably most or all flavors of linux), Firefox&#8217;s default profile is under <i>~/.mozilla/firefox/XXXXXX.Default User</i>.  For Thunderbird, it&#8217;s <i>~/.mozilla-thunderbird/XXXXXXX.Default User</i>.</p>
<h3>Methods of backup</h3>
<p>A quick <a target="external" href="http://www.google.com/search?q=backup+thunderbird">google search</a> can turn up lots of methods of backup, including <a href="http://mozbackup.jasnapaka.com/">MozBackup</a>.  While I haven&#8217;t used this extension myself, I&#8217;ve no doubt that it works to some extent (or else it wouldn&#8217;t have lasted as long as it has).  If you prefer GUI solutions, by all means, try it out.</p>
<p>My preferred method, however, is to make a <a href="http://7-zip.org/">.7z</a> archive of my profile directory (make sure TBird or FireFox is shut down before you zip the archive, though!)  This essentially takes a snapshot of the program (including extensions, skins, even open tabs and windows if the &#8220;Show my windows and tabs from last time&#8221; option is set!); if your profile ever gets corrupted, you can simply unzip the &#8220;saved profile&#8221; over the current profile, restoring it to the &#8220;last known good configuration&#8221;, to quote windows.</p>
<p>Another advantage to the zip-it-up method is that you can create &#8220;holes&#8221; in the profile.  For example, with the &#8220;Show my windows and tabs from last time&#8221; option set, Firefox will leave a sessionstore.js file inside the profile directory; the next time Firefox opens, it reads this file and re-opens all your tabs from last session.  Deleting this file from the zip archive creates a profile hole that the more up-to-date sessionstore.js can fit into.  Very handy at times.</p>
<img src="http://techknack.net/?ak_action=api_record_view&id=89&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://techknack.net/backing-up-thunderbird-or-firefox-profiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
