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

Zarshed Ali
Zarshed Ali
5000
| 2 1 2
Asked on 10/8/15, 11:12 AM
0
vote
4146 Views

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.

1.

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"

2.

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

sudo wget http://sourceforge.net/projects/urbackup/files/Client/1.4.9.1/urbackup-client-1.4.9.1.tar.gz

sudo tar xzf urbackup-client-1.4.9.1.tar.gz

3.

Build the UrBackup client and install it:

cd urbackup-client-1.4.9.1

sudo ./configure

sudo make

sudo make install

4.

Make sure that the UrBackup client backend runs correctly:

sudo start_urbackup_client --loglevel info --no_daemon

5.

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.

6.

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_server_port=55415
computername=hitechnologia
internet_authkey_def=PASSWORD
internet_mode_enabled=true" > /usr/local/var/urbackup/data/settings.cfg

8.

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):

#!/bin/sh
if test -d /mnt/snap_root
then
    btrfs subvolume delete /mnt/snap_root
fi
btrfs subvolume snapshot / /mnt/snap_root
if test -d /mnt/snap_home
then
    btrfs subvolume delete /mnt/snap_home
fi
btrfs subvolume snapshot /home /mnt/snap_home
Into the postfilebackup script:

#!/bin/sh
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
5000
| 2 1 2
Answered on 10/8/15, 12:12 PM
0
vote

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)

Stats

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