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-serverWhat to do step by step:
- Update the system:
sudo apt update && sudo apt upgrade -y- Install the package:
sudo add-apt-repository ppa:uroni/urbackup
sudo apt update
sudo apt install urbackup-server- Open a browser on the server or from a workstation and go to:
http://IP_СЕРВЕРА:55414- In Settings, specify the storage directory, for example:
/backup/urbackupThe 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 -fIt 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-serverAnd 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 reloadThis 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:55414or
http://IP_СЕРВЕРА:55414Then:
- create an admin account;
- specify storage path;
- configure mail notifications if necessary.
Installing UrBackup Client on Windows
Local client on the same network
The official sequence is very simple:
- download Windows client;
- run installer;
- leave the default paths or choose your own;
- server will automatically find the client and start backup. Step by step
- 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.
- 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 backup35622/UDP— discovery35623/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 AllowIf the client is behind NAT / via the Internet
The official script is:
- on the server, click Add new Internet client;
- download a special installer for this client or create a user who will download the installer from the server;
- install the client;
- specify folders for backup;
- 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
.exewith the key/Sfor silent install; - or automation through PsExec and similar tools.
Installing UrBackup Client on Ubuntu
There are two ways here:
- recommended practical - official binary Linux client installer;
- 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 $TFIt is listed on the official download page. Step by step
- 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- 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/wwwOr 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 reloadThis matches the official list of UrBackup client ports. Option B. Building the Ubuntu client from source
The official assembly instructions say:
- install dependencies;
- download tar.gz;
- execute
./configure,make,sudo make install; - check backend;
- add backend to autorun;
- 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 infoThis is useful if the binary installer does not suit you for some reason.