Xfce.org | Xfce Goodies | Xfce Foundation Classes | Xfce Bug Tracker | Xfce Wiki | Xfce Forum | Xfce-look | Xfce DevBlog     

Xfce News
The little mouse told me...

23 Jan 2008

Backups on Xubuntu with SBackup

vincent @ 17:07:21 UTC — Filed under: Xfce

The earth is orbited by many satellites, and every year, many more are sent up into space. Considering the amount of satellites, there is an enormous risk that one of those artificials moons suddenly decides to take a stroll and crashes into your home. I think you’ll agree with me that this would be disastrous - all your precious data would be lost! Your holiday pictures, important documents for school/work and your music collection - all gone!

Of course, you have to protect yourself against catastrophic situations like the one described above (and against hard drive failures). If you’re anything like me, you have no backup solution set up, and though you want to set it up, you keep postponing really taking that step. Well, now is the time. In order to write this guide, I set it up for myself, so now it’s your turn while reading this guide. And let me tell you, once you free up those minutes to set it up, you’ll be glad you did. Even if you’re never going to need it, it feels a lot better knowing that you’re prepared for eventual bad luck.

You need a place to store your backups though. If you create a backup on the same drive as the original files, a hard drive failure will affect that backup just as much as the original files. For out method, the destination can either be another hard drive or a remote directory (through SSH or FTP). If you don’t know what any of these mean, then you probably do not have access to it. Unfortunately, this means that you will not be able to create a backup. If you do possess one of these, read on :) .

The destination I’ll be using is an internal hard drive that used to hold a secondary and lesser-known operating system. Its capacity is a mere 20 GB, so I’ll only be backing up my most important files. Of course, if you happen to have an external 160GB hard drive laying around, be sure to use it to the fullest.

Introducing… SBackup!

A quick search using Applications->System->Add/Remove... (with “All available applications” enabled in the top right-hand corner) for backup turns up a few backup solutions. The application we will be using, which also happens to be the most popular one, is Simple Backup, or SBackup. SBackup is a complete solution, able to automatically create backups at set intervals, keeping the backup size as low as possible. Listed are Simple Backup Config and Simple Backup Restore, which allow you to backup and restore your backup respectively.



Selecting one will also select the other because, obviously, we need to create backups in order to restore them.



With both selected, click Apply Changes and finish the installation as usual.

Once the installation has finished, you can find SBackup’s configuration utility under Applications->System->Simple Backup Config.



Setting it all up

By default, SBackup is set up to only perform backups when you tell it to. However, for maximum security, we want it to automatically create a new backup every so often, and now and then delete old backups in order to save space. To make sure the backups are created exactly the way you want it, select Use custom backup settings.

The first thing to do is selecting which files you want to be included in the backup. This can be done under the Include tab on top.



SBackup comes with a few useful defaults, however, considering the size of my backup drive, I decided to only backup the /home/ directory, which contains the documents and settings of every user on the system. Do include the defaults if you have enough room, though.

Next is deciding which files you do not want to be included in the backup, which can be done under the Exclude tab. You can use the preferences in this tab to exclude any files which you do not regard of enough value to justify the amount of space they’d consume in the backup.



The Exclude tab, in turn, contains four other tabs on the left-hand side.

The first one is the Paths tab, which allows you to exclude complete directories. I left it at the defaults since I had no specific directories I wanted to exclude, and I also felt no need to include the directories listed as excluded by default.

Moving on to the File types tab, though, there were certain files I could not afford to backup. A lot of multimedia files were already excluded, which was fine to me - I cannot afford to back up my (measly little) music collection. However, I often help testing new versions of Xubuntu. This involves downloading complete CD “images” (files that can be put on a CD) which can be up to 700 MB in size. The names of these images always end in .iso, and since there is no need for me to keep them that long, I clicked Add and opted to exclude files with the iso extension.





The Regex tab is not that interesting for this guide, since those who know what it does, are able to figure it out by themselves.

The Max size tab is very useful though, because it allows you to set a maximum size for files to be backed up, which comes in very handy in preventing your backup from growing too big.

We then move on to the Destination tab on top. This tab allows you to, as its name implies, set the destination for your backup. You can set up a remote directory at the bottom - I’ll be setting a custom local backup directory.



I located my external hard drive in the /media/ folder, by the name hda1. It is also listed in my left pane in Thunar (the file browser) as 20G Volume. In there, I created a new folder (/media/hda1/gay/, with gay being the name I gave my computer during installation, but feel free to use whatever you like) to hold my backups. Then I selected Other… in the drop-down menu and selected that folder.

Next up was configuring when the backup is to be ran in the Time tab.



Since I do not have that much space I opted for weekly backups, but of course, the best way to go would be daily. Since I do not leave my computer on 24/7 I cannot set it to create a backup in the middle of the night, so I opted for “simply”, which supposedly means “as soon as the computer is running, with the previous backup being made at least one week ago”.

The last tab, Purging, allows you to configure how long you want to keep old backups.



Mostly, you’ll want to select “Logarithmic”, being the most efficient and recommended method, but if you want to select an exact number of days to keep old backups, that’s possible to.

After finishing the configuration, click “Save” to, well, save your configuration.

Let’s back things up

Of course, I immediately wanted to make my first backup. For that, SBackup comes with the extremely handy “Backup Now!” button :)

Clicking that popped up a window, saying: A backup run is initiated in the background. The process ID is: 7986.



Well, that’s it really - now you can close Simple Backup Config. The backup is being created, and the next one will be created after the period you selected ends. Opening the folder you selected as the destination (/media/hda1/gay/ in my case) will show you that a new directory has been created which will contain the backup.



If you take a look at a later time (once the backup has been completed), you will see that that directory has been filled with files containing information about the backup, and files.tgz which contains the backed-up files.



Restoring a backup

Restoring the backup is very easy, too. Open up Applications->System->Simple Backup Restore, from where you can select the location of your backups.



A drop-down menu “Available backups” provides you a list of all available backups. Selecting one of them will present you with a list of files included in that backup, clicking “Restore” will restore those files in their original location, “Restore As…” allows you to select a different location.

Conclusion

It was about time you created yourself a backup, and tell me: doesn’t it feel wonderful? Simple Backup is an excellent tool that, despite not being as good-looking as Apple’s Time Machine, definitely provides a complete solution for backing up your documents.

And by the way, with this being my first post of 2008, let me wish you all the best for the coming year. 2007 was an magnificent year for this blog, having survived into 2008 since its conception in 2007. There’s no complaining about the number of visitors, too: at the time of writing, with just 24 posts (this being the 25th), I’ve received a total of 116 798 views, with about 500 to 600 views a day recently. Furthermore, I believe it’s also been useful to a few people, which was the reason for starting this blog in the first place.
On the personal level, it also was a fantastic year. My mother’s ex, who was a massive burden to me, finally left (he lived here since I was about thirteen years old), enabling me to develop tremendously as a person, which I expect to continue in 2008. My writing style has also improved - another trend which I hope will continue in 2008.
All in all, let’s make 2008 another awesome year, and of course, if you got any further suggestions, be sure to make it known :) .

author_img

14 Jan 2008

It´s a girl!

Jasper @ 19:49:11 UTC — Filed under: Life

I´m very proud to present to you my daughter:

Cute photograph

Her name is Leonie and she was born on Sunday, January 6, 21:06 CET. She is undoubtedly the most beautiful baby in the world. You´re thinking all fathers say that, but I´m sure this time it is true ;-)

author_img

9 Jan 2008

migration and midori

MarkTrompell @ 10:31:00 UTC — Filed under: Xfce
author_img

5 Jan 2008

Roadmap

MarkTrompell @ 14:17:00 UTC — Filed under: Xfce
author_img

1 Jan 2008

End of 2007 and new beginnings

OgMaciel @ 15:13:22 UTC — Filed under: Xfce

It’s was the end of the year and my head has been spinning with ideas! The important thing is to know how to take advantage of this and try to turn them into reality. That’s why I’m planning on using online systems like Remember The Milk(RTM) to help me get more organized. Since I check my gMail at least a good 50 times a day, and RTM integrates well with it, I won’t have any excuses if I forget something now.

Since our company closes down during the last week of the year, and it was Yv’s birthday on the 22nd, we packed our stuff and drove to Northern New Jersey to spend her birthday, as well as the holidays with our family. The trip took forever: 9 hours going there and 11 coming back. But it was worth seeing our family and see how my two daughters, the only grandchildren from both sides, are adored by all. :)

Yv's birthday

Elizabeth and I took advantage of some free time we had (free as in no kids around since they were with the grandparents) to watch Will Smith’s “I am legend“. Believe it or not, but by coincidence we ended up going to the same movie theater in New Jersey where we first dated 8 years ago! It was pretty amusing to return to the “starting point”, but this time having been married for 7 years and with 2 kids.

I found some time to work on my translations for the up and coming GNOME 2.22. I also worked on my pet project BillReminder together with Luiz Armesto. It’s very nice to have someone coding with you, and Luiz is a great programmer and a good friend! We took some time to write down the necessary steps  for a 0.3 release, which I’m planning to do on the 15th of February (anyone who can guess the reason will get a lollipop!)!

BillReminder

I packaged a few things for the upcoming version 2.0 of Foresight which should be released this year. One of these programs was TextFlow created by my friend Yuri Malheiros. This project is already looking really nice and I intend to keep contributing with it as much as time allows me. If you’re looking for a cool project to get you started in the world of Python and open source, look no further. Both BillReminder and TextFlow projects are looking for a helping hand. Feel free to contact either one of us.

TextFlow

For 2008 I have many plans, specially in terms of organizing my time and take better advantage of it.  The translations for GNOME, XFCE, Openbox and KDE (this year should see me contributing a whole lot to the KDE project) are part of my world domination plan, as well as find a way to finally buy my own place, be that an apartment or a house. I also hope to be able to visit Brazil since the last time I did it was in 2005, but only time will tell…

I wish you all a great 2008 filled with peace, love and happiness! Carpe diem!

author_img

Webmaster
Xfce is © Olivier FOURDAN 1996 - 2004 | Powered by WordPress and Lunar Linux | 0.429