RU | EN | DE

Installing UrBackup Server on Ubuntu Server

The official installation command for Ubuntu is:

sudo add-apt-repository ppa:uroni/urbackup  
sudo apt update  
sudo apt install urbackup-server

What to do step by step:

  1. Update the system:
sudo apt update && sudo apt upgrade -y
  1. Install the package:
sudo add-apt-repository ppa:uroni/urbackup  
sudo apt update  
sudo apt install urbackup-server
  1. Open a browser on the server or from a workstation and go to:
http://IP_СЕРВЕРА:55414
  1. In Settings, specify the storage directory, for example:
/backup/urbackup

The official manual advises on Linux to store backup storage on expandable storage, and btrfs or ZFS are good options for file backup; It is separately noted that btrfs is preferable for some scenarios due to subvolumes and effective deduplication of incremental file backups. Option B. Through the official .deb

The official page for Debian/Ubuntu gives this example:

wget https://hndl.urbackup.org/Server/2.5.36/urbackup-server_2.5.36_amd64.deb  
sudo dpkg -i urbackup-server_2.5.36_amd64.deb  
sudo apt install -f

It also states that during installation the package may ask for the directory for backup storage, and later it can be changed via:

sudo dpkg-reconfigure urbackup-server

And it is separately said that in /etc/default/urbackupsrv you can change some of the parameters, including TCP port, web server port, log level and temporary file directory. Firewall on Ubuntu Server

If you use ufw, do this:

sudo ufw allow 55414/tcp  
sudo ufw allow 55415/tcp  
sudo ufw reload

This opens the web UI and Internet clients. For normal local work, server discovery uses outgoing UDP broadcast, and client incoming ports are opened on the clients themselves. Check after installation

Go to:

http://localhost:55414

or

http://IP_СЕРВЕРА:55414

Then:

  1. create an admin account;
  2. specify storage path;
  3. configure mail notifications if necessary.

Installing UrBackup Client on Windows

Local client on the same network

The official sequence is very simple:

  1. download Windows client;
  2. run installer;
  3. leave the default paths or choose your own;
  4. server will automatically find the client and start backup. Step by step
  5. On the client, download UrBackup Client for Windows from the official website. Now a regular installer, an option without tray icon and MSI are available. Run the installer as administrator.
  6. At the installation stage:
    • leave the tray icon if you want to see the status of backups;
    • if this is a server or background host, you can use the without tray icon version. Choose what to backup:
    • either leave the standard folders;
    • either add your directories;
  • or even manage it from the server, because UrBackup allows you to configure the client from the server side, making the local UI optional. Check that the server sees the client in the web UI.

Firewall on Windows client

The client needs incoming ports:

  • 35621/TCP — file backup
  • 35622/UDP — discovery
  • 35623/TCP — commands + image backup

These are the official UrBackup client ports. erShell commands:

New-NetFirewallRule -DisplayName "UrBackup Client 35621 TCP" -Direction Inbound -Protocol TCP -LocalPort 35621 -Action Allow  
New-NetFirewallRule -DisplayName "UrBackup Client 35622 UDP" -Direction Inbound -Protocol UDP -LocalPort 35622 -Action Allow  
New-NetFirewallRule -DisplayName "UrBackup Client 35623 TCP" -Direction Inbound -Protocol TCP -LocalPort 35623 -Action Allow

If the client is behind NAT / via the Internet

The official script is:

  1. on the server, click Add new Internet client;
  2. download a special installer for this client or create a user who will download the installer from the server;
  3. install the client;
  4. specify folders for backup;
  5. server starts backup after client connects. Bulk installation of Windows clients

If you then want to roll out UrBackup en masse, the official manual recommends:

  • MSI via Group Policy;
  • either .exe with the key /S for silent install;
  • or automation through PsExec and similar tools.

Installing UrBackup Client on Ubuntu

There are two ways here:

  1. recommended practical - official binary Linux client installer;
  2. alternative - build from source. The download page directly states that the binary Linux client is command line only and it is the one that can do auto-update from server. Option A. Official binary installer

The official command is:

TF=$(mktemp) && wget "https://hndl.urbackup.org/Client/2.5.29/UrBackup%20Client%20Linux%202.5.29.sh" -O $TF && sudo sh $TF; rm -f $TF

It is listed on the official download page. Step by step

  1. On the Ubuntu client, run:
sudo apt update && sudo apt upgrade -y  
TF=$(mktemp) && wget "https://hndl.urbackup.org/Client/2.5.29/UrBackup%20Client%20Linux%202.5.29.sh" -O $TF && sudo sh $TF; rm -f $TF
  1. During installation, if the installer offers a snapshot mechanism, select the available option. The official manual advises using the snapshot mechanism; if none is available, it is worth considering installing Linux on LVM or btrfs, otherwise for consistent backups you will have to stop data-changing applications through pre/post-backup scripts. After installation, the server on the same network will usually find a client on its own. How to set folders for backup on Ubuntu client

The official manual for the Linux client gives an example command:

urbackupclientctl add-backupdir --path /

With this command you can add a directory to file backup. For Ubuntu, they usually do not set the entire /, but only the necessary directories, for example /home, /etc, /var/www, /srv - depending on the role of the machine. measures:

sudo urbackupclientctl add-backupdir --path /home  
sudo urbackupclientctl add-backupdir --path /etc  
sudo urbackupclientctl add-backupdir --path /var/www

Or you can even set default backup directories on the server and manage it centrally. The official website directly states that the client can also be configured from the server. Firewall on Ubuntu client

If ufw is enabled on the client, open:

sudo ufw allow 35621/tcp  
sudo ufw allow 35622/udp  
sudo ufw allow 35623/tcp  
sudo ufw reload

This matches the official list of UrBackup client ports. Option B. Building the Ubuntu client from source

The official assembly instructions say:

  1. install dependencies;
  2. download tar.gz;
  3. execute ./configure, make, sudo make install;
  4. check backend;
  5. add backend to autorun;
  6. If you have a GUI, run urbackupclientgui. ands from the official instructions:
sudo apt install build-essential g++ libwxgtk3.0-dev libcrypto++-dev libz-dev  
wget https://hndl.urbackup.org/Client/2.5.29/urbackup-client-2.5.29.tar.gz  
tar xzf urbackup-client-2.5.29.tar.gz  
cd urbackup-client-2.5.29  
./configure  
make -j4  
sudo make install  
sudo urbackupclientbackend -v info

This is useful if the binary installer does not suit you for some reason.