October 21, 2021
How to install UrBackup Server on Ubuntu 20.04

How To Install UrBackup Server on Ubuntu 20.04 LTS

On this tutorial we will learn how to install UrBackup Server version 2.4.13 on Ubuntu 20.04 LTS operating system.

Introduction

We need a backup software to perform a backup, to create supplementary exact copies of files, databases or entire computers. These programs may later use the supplementary copies to restore the original contents in the event of data loss. UrBackup is a free and oper source backup software which is widely used today. UrBackup is an easy to setup Open Source client/server backup system, that through a combination of image and file backups accomplishes both data safety and a fast restoration time. On this tutorial we will learn how to install UrBackup Server application on Ubuntu 20.04 LTS operating system.

UrBackup Server Installation On Ubuntu 20.04 LTS

There are several steps that must be taken in UrBackup installation process on Ubuntu 20.04 LTS operating system, namely:

  1. Adding UrBackup Repository
  2. System Update
  3. Installing UrBackup Server
  4. Configuring UrBackup Server

1. Adding UrBackup Repository

The UrBackup repository is located on Official PPA repository, we will add this repository to our system, by typing command line :

sudo add-apt-repository ppa:uroni/urbackup
mpik@app01:~$ sudo add-apt-repository ppa:uroni/urbackup
[sudo] password for mpik: 
 Efficient Client-Server Backup system for Linux and Windows. A client for Windows lets you backup open files and complete partition images. Backups are stored to disks in a efficient way (deduplication) on either Windows or Linux servers.
 More info: https://launchpad.net/~uroni/+archive/ubuntu/urbackup
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease                                    
Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease                                           
Get:5 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal InRelease [6,264 B]                             
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                               
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [27.6 kB]                              
Hit:1 https://downloads.mariadb.com/Tools/ubuntu focal InRelease                                                        
Get:9 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                        
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [61.1 kB]     
Get:11 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]                       
Hit:7 https://downloads.mariadb.com/MaxScale/6.1.1/apt focal InRelease                                         
Get:12 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [532 kB]
Get:13 http://ppa.launchpad.net/uroni/urbackup/ubuntu focal InRelease [17.5 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,205 kB]
Get:15 http://ppa.launchpad.net/uroni/urbackup/ubuntu focal/main amd64 Packages [584 B]                                  
Get:16 http://ppa.launchpad.net/uroni/urbackup/ubuntu focal/main Translation-en [252 B]                                  
Get:17 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [282 kB]                             
Get:18 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [855 kB]                                
Get:19 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [632 kB]                                 
Get:20 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [351 kB]                         
Get:21 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]                        
Get:22 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [10.4 kB]                       
Fetched 4,313 kB in 19s (227 kB/s)                                                                                        
Reading package lists... Done

2. System Update

By updating our system, it will refresh the local list of available packages software to the newer stable version. To update Ubuntu 20.04 system repositories, we will use the command line:

sudo apt-get update
mpik@app01:~$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease                                                         
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease                                                                
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease                                                         
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                         
Hit:6 http://ppa.launchpad.net/uroni/urbackup/ubuntu focal InRelease                                
Get:7 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal InRelease [6,264 B]        
Hit:8 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                            
Hit:3 https://downloads.mariadb.com/Tools/ubuntu focal InRelease                                               
Hit:9 https://downloads.mariadb.com/MaxScale/6.1.1/apt focal InRelease
Fetched 6,264 B in 4s (1,665 B/s)
Reading package lists... Done

3. Installing UrBackup Server Application

After updating Ubuntu 20.04 system, now we will install the UrBackup server using by issuing command line :

sudo apt-get install urbackup-server
mpik@app01:~$ sudo apt-get install urbackup-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libevent-core-2.1-7 libevent-pthreads-2.1-7 libmecab2 libzip5 mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  attr augeas-lenses btrfs-progs cpu-checker cryptsetup-bin db-util db5.3-util debootstrap dmeventd exfat-fuse
  exfat-utils extlinux f2fs-tools finalrd hfsplus ibverbs-providers icoutils ipxe-qemu ipxe-qemu-256k-compat-efi-roms
  kpartx ldmtool libafflib0v5 libaugeas0 libcacard0 libconfig9 libcrypto++6 libdate-manip-perl libdevmapper-event1.02.1
  libewf2 libf2fs-format4 libf2fs5 libfdt1 libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools
  libguestfs-xfs libguestfs0 libhfsp0 libhivex0 libibverbs1 libintl-perl libintl-xs-perl libiscsi7 libldm-1.0-0
  liblvm2cmd2.03 libnetpbm10 librados2 librbd1 librdmacm1 libslirp0 libspice-server1 libstring-shellquote-perl
  libsys-virt-perl libtsk13 libusbredirparser1 libvirglrenderer1 libvirt0 libwin-hivex-perl libxml-xpath-perl libyara3
  lsscsi lvm2 lzop mdadm msr-tools netpbm osinfo-db ovmf qemu-block-extra qemu-system-common qemu-system-data
  qemu-system-gui qemu-system-x86 qemu-utils reiserfsprogs scrub seabios sharutils sleuthkit sqlite3 supermin
  thin-provisioning-tools xfsprogs zerofree
Suggested packages:
  augeas-doc duperemove arch-test squid-deb-proxy-client libterm-readline-gnu-perl | libterm-readline-perl-perl
  augeas-tools libguestfs-gfs2 libguestfs-jfs libguestfs-nilfs libguestfs-rescue libguestfs-rsync libguestfs-zfs
  gstreamer1.0-plugins-ugly default-mta | mail-transport-agent dracut-core samba vde2 sharutils-doc bsd-mailx | mailx
  autopsy mac-robber sqlite3-doc xfsdump quota
Recommended packages:
  linux-image-amd64
The following NEW packages will be installed:
  attr augeas-lenses btrfs-progs cpu-checker cryptsetup-bin db-util db5.3-util debootstrap dmeventd exfat-fuse
  exfat-utils extlinux f2fs-tools finalrd hfsplus ibverbs-providers icoutils ipxe-qemu ipxe-qemu-256k-compat-efi-roms
  kpartx ldmtool libafflib0v5 libaugeas0 libcacard0 libconfig9 libcrypto++6 libdate-manip-perl libdevmapper-event1.02.1
  libewf2 libf2fs-format4 libf2fs5 libfdt1 libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools
  libguestfs-xfs libguestfs0 libhfsp0 libhivex0 libibverbs1 libintl-perl libintl-xs-perl libiscsi7 libldm-1.0-0
  liblvm2cmd2.03 libnetpbm10 librados2 librbd1 librdmacm1 libslirp0 libspice-server1 libstring-shellquote-perl
  libsys-virt-perl libtsk13 libusbredirparser1 libvirglrenderer1 libvirt0 libwin-hivex-perl libxml-xpath-perl libyara3
  lsscsi lvm2 lzop mdadm msr-tools netpbm osinfo-db ovmf qemu-block-extra qemu-system-common qemu-system-data
  qemu-system-gui qemu-system-x86 qemu-utils reiserfsprogs scrub seabios sharutils sleuthkit sqlite3 supermin
  thin-provisioning-tools urbackup-server xfsprogs zerofree
0 upgraded, 86 newly installed, 0 to remove and 406 not upgraded.
Need to get 46.5 MB of archives.
After this operation, 217 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/uroni/urbackup/ubuntu focal/main amd64 urbackup-server amd64 2.4.13.0-1ubuntu1~focal [3,531 kB]
Fetched 2,502 kB in 2min 12s (18.9 kB/s)             

...

4. Configuring UrBackup Server

While the UrBackup installation in progress, we will be asked to define where the backup image will be located.

UrBackup Server Configuration
UrBackup Server Configuration

Once the installation was completed, then we will run the UrBackup service and make it enable to allow the UrBackup service running every Server is booting. We will use the command line :

sudo systemctl start urbackupsrv
sudo systemctl enable urbackupsrv
sudo systemctl status urbackupsrv
mpik@app01:~$ sudo systemctl start urbackupsrv
[sudo] password for mpik: 
mpik@app01:~$ sudo systemctl enable urbackupsrv
urbackupsrv.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable urbackupsrv
mpik@app01:~$ sudo systemctl status urbackupsrv
● urbackupsrv.service - LSB: Server for doing backups
     Loaded: loaded (/etc/init.d/urbackupsrv; generated)
     Active: active (running) since Mon 2021-09-13 17:58:11 PDT; 1min 25s ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 17 (limit: 9436)
     Memory: 19.6M
     CGroup: /system.slice/urbackupsrv.service
             └─1196 /usr/bin/urbackupsrv run --config /etc/default/urbackupsrv --daemon --pidfile /var/run/>

Sep 13 17:58:11 app01.otodiginet.com systemd[1]: Starting LSB: Server for doing backups...
Sep 13 17:58:11 app01.otodiginet.com systemd[1]: Started LSB: Server for doing backups.

5. Accessing UrBackup Server Application

By default, UrBackup server web console is using port 55414, then we acces this console to manage the backup job. The URL can be accesed on : http://sever_ip_address:55414/.

UrBackup Server Console | First time run
UrBackup Server Console | First time run

After UrBackup Server installation was completed done and web console is accessible, we should perform following steps:

  1. Access user settings and add an admin account.
  2. Setup the mail server by entering the appropriate mail server settings.
  3. If we want the clients to be able to backup via Internet and not only via local network, configure the public server name or IP of the server in the Internet settings.
  4. If we want the clients to be able to access their backups via browser and “right click -> Restore/access backups“‘ enter a server URL. E.g. http://backups.company.com:55414/. Make sure your DNS is configured such that backups.company.com points to the internal IP of the backup server if accessed from the internal network and points to the external IP otherwise. You should put a real web server in front of UrBackup and setup SSL (See section 4.2).
  5. If you want to get logs of failed backups go the “Logs” screen and configure the reports for our email address.

Conclusion

So far, the UrBackup Server installation on Ubuntu 20.04 LTS system has completed done. For UrBackup Client installation on other host will be cover soon on other article.

Share this article via :

Leave a Reply

Your email address will not be published. Required fields are marked *