Backing Up Data In Ubuntu Using sBackup

sbackup cdrBe it Windows, Mac or Linux, it is always a wise choice to backup your data. You never know when your hardware is going to fail and when that happens, you know that all your data is safe and there is a backup copy for you to fall back on.

In Ubuntu, it is surprisingly easy to backup your data. Gone are the days that require you to remember all the text line commands to type in the command prompt. With sBackup, you can easily backup your data with few clicks of your mouse. let me show you how.

First, install sbackup

sudo apt-get install sbackup

Once done, go to System -> Administration -> Simple Backup Config. Enter your login password and you will be able to see the Window shown in the screen below.

sBackup screenshot1

Under the General tab, there are three ways you can choose to backup your data:

  1. Use recommended backup setting
  2. Use custom backup setting
  3. Manual backups only

If you are plain lazy and just to click, save and let it run by itself, you should choose the “recommended backup setting”. This will do a full backup every week and daily incremental backups to any changes made to the files. One point to note, this setting does not backup multimedia files and all file sizes that are more than 100MB.

For anyone who wants more control over which files to backup, the custom backup setting should be used. This setting allows you to define what should be included, excluded, the backup destination, when to backup and what to do with old backups.

Manual backup setting is for those who want to perform the backup manually.

Configuring backup setting

If you are choosing the custom backup or manual backup setting, here are your configuration choices:

The Include tab shows a list of directory that you want to backup. The two main directories you want to include are the /home and /etc. The /home contains all your personal data while the /etc contains all the application you have installed.

sBackup screenshot2

On the Exclude tab, you can do just the opposite, excluding the files that you don’t want to backup. You have more choices here. On the left, there are four tabs – paths, file types, regex and max size. You can exclude all files from a path, all files of a certain files type, all files that match a certain expression or any files that are bigger than a certain size (the file size to be fixed by you). Some of the directories that you might want to exclude are /proc, /var/cache, /tmp, /dev, /var/tmp, /lost+found, /mnt, /media, /sys.

sBackup screenshot3
sBackup screenshot4
sBackup screenshot5
sBackup screenshot6

Next, we proceed on to the Destination tab. This is where you choose the location to backup your data to. The default backup directory is /var/backup. However, you can change it to other directory of your preference. You can also choose to backup to a remote directory via SSH or FTP.

sBackup screenshot7

The next option available to you is the Time setting. You set the time where the backup is executed. It can be hourly, daily, weekly, and monthly or if you prefer, set the precise day of the month, day of the week and even the hour and minute to backup your data. The last option in this setting is to set the minimum number of days before a full backup is required.

sBackup screenshot8

The last tab is the Purging. Select how you want to handle your old and incomplete backups. You can either choose to erase all backups older than your preset number of days, or use a logarithmic setting where one backup from the previous day, week, month and year are kept and the rest removed.

sBackup screenshot9</ol> </ul> <p>

Once you are done and satisfied with the configuration, press “Backup Now!” to start the backup. Depending on the setting you made, the process can take from few minutes to few hours.

Restoring the backups

It is very easy to restore the backup. Got to System -> Administration -> Simple Backup Restore. Enter your password and the window (shown in the screen below) will pop up.

sBackup screenshot10

Choose the backup directory where you backup your file and select the files or folders that you want to restore. To restore to the same location, press Restore. To restore to other location, press Restore As.

That’s it!


Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox