UrBackup - How to install UrBackup client on Debian or Ubuntu Linux ?

Zarshed Ali
Zarshed Ali
| 2 1 2
Asked on 10/8/15, 11:12 AM

Install client on Debian or Ubuntu

On this page you will find step by step instructions to build, install and setup UrBackup on a Debian/Ubuntu GNU Linux system.


Install the dependencies UrBackup needs: WxWidgets >= 2.9.0 On Debian/Ubuntu you can do that with apt-get or your favourite package manager:

sudo apt-get install build-essential "g++" libwxgtk3.0-dev "libcrypto++-dev"


Download the UrBackup client source files and extract them via e.g.

sudo wget http://sourceforge.net/projects/urbackup/files/Client/

sudo tar xzf urbackup-client-


Build the UrBackup client and install it:

cd urbackup-client-

sudo ./configure

sudo make

sudo make install


Make sure that the UrBackup client backend runs correctly:

sudo start_urbackup_client --loglevel info --no_daemon


Start the UrBackup client backend on startup by adding it e.g. to rc.local:

sudo chmod +x /etc/rc.local

sudo nano /etc/rc.local

Now add /usr/local/sbin/start_urbackup_client before the exit 0.


Start the UrBackup client frontend and setup your paths by executing

sudo urbackup_client_gui

and clicking on the tray icon and add paths. You can also do that on the server.

7. then edit the client configs via command line... (if root needed then use sudo -i)

echo "internet_server=urbackupserver.com
internet_mode_enabled=true" > /usr/local/var/urbackup/data/settings.cfg


If you want constistent backups you need snapshots. You get them on Linux via LVM or btrfs. The Problem: You generally need to think about that before you install Linux. There you either choose btrfs as filesystem or choose to use LVM as volume manager. Let's say you chose btrfs (please keep in mind that it is not considered ''stable'' yet. LVM has some disadvantages as well - see write barriers) then you can do consistent backups like this, if you want to backup your whole home filesystem and root filesystem:

mkdir /etc/urbackup
touch /etc/urbackup/prefilebackup
touch /etc/urbackup/postfilebackup
chmod +x /etc/urbackup/*
Write following into the prefilebackup script (for the example filesystems):

if test -d /mnt/snap_root
    btrfs subvolume delete /mnt/snap_root
btrfs subvolume snapshot / /mnt/snap_root
if test -d /mnt/snap_home
    btrfs subvolume delete /mnt/snap_home
btrfs subvolume snapshot /home /mnt/snap_home
Into the postfilebackup script:

btrfs subvolume delete /mnt/snap_root
btrfs subvolume delete /mnt/snap_home
Call the prefilebackup script:

sudo /etc/urbackup/prefilebackup
And select the two trees in /mnt snap_root and snap_home as the directories to backup.

Now every time a file backup is started prefilebackup is executed by UrBackup. This creates snapshots of your two volumes. The files are then backed up from that snapshot. After the backup is done postfilebackup is executed which destroys the snapshots. The if construct in prefilebackup removes existing snapshots in case a previous backup was interrupted and restarted.

Zarshed Ali
Zarshed Ali
| 2 1 2
Answered on 10/8/15, 12:12 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

2 follower(s)


Asked: 10/8/15, 11:12 AM
Seen: 8833 times
Last updated: 10/8/15, 12:41 PM