Posts

Showing posts with the label Linux

Creating backups of your home folder

I don't think I have to tell you that creating backups is necessary. You never know how and when disaster will strike. To prevent loss of data I have been using the following strategy for a while: create a backup on a weekly basis to 2 disks on-site switch one of the on-site disks with an off-site disk (stored in a safe in a bank) Having an off-site disk is important. It helps you recovering from a real disaster like fire or theft. You could rent some online cloud storage to facilitate your off-site backups, but I think my solution (given the amount of data) is cheaper and faster. To create my weekly backup, I use the following script: #!/bin/sh # Author: Brice Burgess - bhb@iceburg.net # multi_backup.sh -- backup to a local drive using rsync. # Uses hard-link rotation to keep multiple backups. # Directories to backup. Seperate with a space. Exclude trailing slash! SOURCES= "/home/kenneth" # Directory to backup to. This is where your backup(s) will be st...

openSUSE 13.1

2 years ago, I finally decided to ditch Ubuntu (kubuntu actually) and give openSUSE a try. Since that day, it has been running fine and stable without any problems. 12.1 was getting old, however, and I thought the other weekend was the perfect timing to re-install my main computer with the latest-and-greatest openSUSE 13.1. Like with 12.1, installation went like a breeze. As with 12.1, I downloaded the live DVD and installed from there. It was only after the first reboot, network was not available (it was available in the live DVD) and I had to enable networking manually in YaST, not sure why that happened. YaST, by the way, has been rewritten entirely in Ruby to allow better development for new modules. The previous version of YaST was written in YCP which was a very inflexible language from what I read. Anyway, as a normal user, you probably won't see any differences. Since I have an NVIDIA card, I downloaded and installed the latest drivers (331.20 at the time of writing) manu...

openSuSE 12.1

I've been using Ubuntu for quite some time now. Ever since the issues I've encountered while upgrading from Hoary, to Breezy, to Dapper, I decided to stick with LTS (or Long Term Support) releases. I don't care about using bleeding edge technology, I just want a PC that works. Being a first hour kubuntu with KDE4 user, I was a little bit displeased with the latest LTS release, so the past years I've been looking at different other distributions to see which one supports KDE best. Distributions with rolling releases earned extra points :) In 1998 SuSE 6.0 was released and I remember buying a big box containing 6 CDs in a local bookstore. I liked SuSE a lot. It was easy to install and maintain. The only downside was the RPM dependency hell you can end up with once you tried to install packages that were not available on the CDs. YAST already existed back then and was already doing a great job configuring the system (ncurses based, of course). Since openSuSE is very KDE...

Fosdem 2012 ...

... the dates are set. February 4 & 5, 2012 ... yeah!

Restoring files manually from a mondo backup

As already mentioned in earlier posts, I uses mondo to create system backups of all my systems. By system backups I mean; create a backup of the live system, without any personal data. In short, this is a backup of everything except home folders. The home folders are backed up using rsync and external disks, but this is another story. Restoring from a mondo backup is easy; simply burn the images, put it in a cd drive and nuke the system (yes, this is a restore option in mondo :) ). If you just want to restore some files from the backup, without overwriting the whole system, there's an easy way to do this. Suppose you created an ISO a while ago and these are stored on some disk. First, you will need to mount the ISO as a loopback device like so: mount -o loop MyIso.iso /mnt The ISO is now mounted in /mnt . Now locate the file you want to restore (I was going to restore smb.conf ): $ grep smb.conf /mnt/archives/filelist.* /mnt/archives/filelist.11:/var/lib/ucf/cache/:etc:samba:...

Failed to issue the StartTLS instruction: Protocol error

I encountered the error mentioned in the title of this post after upgrading my samba install on Debian Lenny using Enterprise Samba binaries. The latest version they distribute at the time of writing is 3.4.9. My samba install talks to an ldap backend and the above error was shown upon starting the new version. Seems they added (or changed the default) option for the ldap protocol in smb.conf . Adding: ldap ssl = off makes the error go away. Cool.

Easy backups on Linux, putting it to the test

In an earlier post I was talking about how I've been using mondo as preferred backup solution for quite some time. However, I have never used it to restore stuff, since I've never broken any install before and hardware hasn't failed on me yet. Since I wanted to replace the smaller 10GB hard drive, I've installed in the Wyse, with a bigger 500GB one, this would be an ideal case to try and restore everything with mondo . So I created a backup of the 10GB drive with mondo to an NFS share on another PC (using the script posted earlier). Next, burned the resulting ISO to a CD and finally booted from the CD and interactively restored my data. mondo has 2 main restore modes; interactive and nuke. Since my new drive was bigger than the original drive, mondo suggested to drop to interactive mode, which allowed me to create a whole new partition scheme (which is nice). The only thing that failed was grub installing itself on the master boot record. I'm not sure why, maybe...

Easy backups on Linux

Ubuntu has been a fantastic operating system for my desktop and has been my preferred Desktop OS for more than 3 years now. The cool thing about Ubuntu is it's Debian based. So you install once and dist-upgrade to every new release without ever having to reinstall the whole thing. The downside is a dist-upgrade in Ubuntu sometimes fails leaving you with a very b0rken system. That's why I stick with LTS releases for now, because I have little spare time to reinstall my desktop every few months or so. Nevertheless there are brave people out there always keeping track of the latest, more or less stable, version and don't mind the dist-upgrade problems. Anyway if your install is broken after a dist-upgrade (or any upgrade) it's always nice to have a backup at hand. In search of the ideal, most flexible, backup tool out there I found mondo . So, people, stop asking for a backup tool for Linux on forums, this one will suite your needs. Unlike some other tools, mondo creates ...