Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

Creating Backups With luckyBackup On An Ubuntu 9.04 Desktop


This tutorial explains how to install and use luckyBackup on an Ubuntu 9.04 desktop. luckyBackup is an application for data back-up and synchronization powered by the rsync tool. It is simple to use, fast (transfers over only changes made and not all data), safe (keeps your data safe by checking all declared directories before proceeding in any data manipulation ), reliable and fully customizable.

I do not issue any guarantee that this will work for you!

 

1 Installing luckyBackup

luckyBackup is not available in the official Ubuntu repositories, but from Launchpad. Therefore we add the luckyBackup repository to our apt configuration.

Open a terminal (Applications > Accessories > Terminal)…

1

… and run the following commands:

gpg –keyserver keyserver.ubuntu.com –recv-keys 62E44DBB
gpg –export 62E44DBB -a | sudo apt-key add –
sudo rm -f /etc/apt/sources.list.d/luckybackup-maintainers.list
echo “deb http://ppa.launchpad.net/luckybackup-maintainers/ppa/ubuntu `lsb_release -sc` main” | sudo tee -a /etc/apt/sources.list.d/luckybackup-maintainers.list

Afterwards we update our package database…

sudo apt-get update

… and install luckyBackup as follows:

sudo apt-get install luckybackup

That’s it, luckyBackup is now installed and ready to be used.

 

2 Using luckyBackup

With luckyBackup you can backup/restore only folders that you have write access to (actually you can back up read-only folders, but you cannot restore them). Therefore you will find two launchers for luckyBackup, one for running it with normal user privileges under Applications > Accessories > luckyBackup

2

… and one for running it with root privileges under Applications > System Tools > luckyBackup (super user):

3

If you want to back up your home directory, for example, running luckyBackup as a normal user is fine.

This is how luckyBackup looks. By default, no backup tasks are defined. To create a backup task, click on the add button…

4

… and fill out the Task properties window. Specify a name for the task as well as a source directory (the directory that you want to back up) and a destination directory (the directory where you want luckyBackup to store the backups) (the destination directory can be inside the source directory, but we have to exclude the backup directory from the backup then, because otherwise we’d create a loop – I’ll come to that in a minute). Mark the Also create a task for restore purposes to automatically create a suitable restore task for this backup. Then click on Advanced:

5

Under Advanced you can now exclude directories from the backup (e.g. Backup files, Trash). To avoid a backup loop (remember, my backup directory is /home/falko/Backup which is inside the source directory /home/falko), we have to exclude the backup directory; to do this, click on User Defined

6

… and add the backup directory to the exclude list:

7

8

Then click on Okay. You will see the following warning – click on OK:

9

A Task properties window with the properties of the restore task will open if you have marked Also create a task for restore purposes. Make sure the settings are correct and click on Okay:

10

Now you will find two tasks in the main window, the backup task and the restore task. We want the backup task to be active (so that it can be run by cron, for example), while the restore task will usually be invoked manually (e.g. in case of data loss), therefore we mark the checkbox of the backup task…

11

… and click on the floppy disk icon to save our changes to the default profile (so that you don’t lose the tasks you’ve just created when you close luckyBackup).

11a

We can now invoke our first backup manually. Make sure that the backup task is checked (and the restore task is not) and click on the Start button:

11

A new window will pop up and show the progress of the backup. Click on Done afterwards to close it:

12

A new window will pop up and show the progress of the backup. Click on Done afterwards to close it:

12

A new window will pop up and show the progress of the backup. Click on Done afterwards to close it:

13

Again, a window will pop up and show the progress of the restore process. Click on Done afterwards to close it:

14

Until now, we have invoked the backup manually. Of course, it would be nice if luckyBackup could create backups automatically for us a predefined times (e.g. once per day). Fortunately luckyBackup supports such scheduled tasks (i.e., cron jobs). To create such a cron job, click on the clock icon:

15

A new window will pop up (schedule). Click on add to create a new cron job:

16

The new cron job should now be listed in the schedule window. Click on cronIT !!:

18

That’s it, luckyBackup will now create backups for you automatically.

 

  • luckyBackup: http://luckybackup.sourceforge.net/
  • Ubuntu: http://www.ubuntu.com/

 

 

 

Comments

comments