UrBackup Instalacja

  • Monday, 12 December 2022
  • Linux
  • 0 Comment/s

Cala instrukcja instalacji na Ubuntu 20.04 tutaj

1. Update the system

You should execute the command below to update your system with the latest updates and security patches:

# apt-get update -y

2. Install UrBackup Server

After updating the system, now we will install the UrBackup server using its Official PPA repository by issuing the following commands in the terminal:

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

Once prompted, type 'y' and hit enter to start the installation of the UrBackup server along with its dependent packages.

3. Configure UrBackup Server

During the installation, you will be asked to configure the UrBackup server, where you need to give a path of backup storage.

All the backups will be stored in the given path, tab to 'ok' and hit Enter key to continue.

Once the installation is complete, run the following command to check the status of UrBackup Server.

# systemctl status urbackupsrv

You can also use the commands below to set the service run automatically after reboot.

# systemctl enable urbackupsrv 
 

4. Access UrBackup Web Interface

Once the installation is complete, the web interface of UrBackup server can be accessed using its default port '55414' provided that it is allowed in your firewall.

Let's open the URL in your favorite browser as below:

https://your_ip:55414

 

5. Add Admin User to UI

Now you have access to the Web UI of UrBackup Server without giving any user and password to log in, to do so we need to create an Administrator user from the web interface.

Also, you can go through other settings to make changes as per your own requirements for the backups.

 

6. Add New Backup Client

To add a new client for backup to UrBackup server, click on the add new client as an Internet client/client behind NAT. Make sure to Enable Internet mode from settings. Give it the name of your client host FQDN or IP and click to Add client.

After you add the client, you will get its installation packages that you need to install for backups on the client host:

# TF=`mktemp` && wget "http://your_server_ip:55414/x?a=download_client&lang=en&clientid=1&authkey=nGEDmaj5Qb&os=linux" -O $TF && sudo sh $TF; rm -f $TF

Execute the command below to check client service status:

# systemctl status urbackupclientbackend

UrBackup client will be up and running on port '35621'

 

If you experience any issues, take a look at its logs under '/var/log/urbackupclient.log' file.

 

7. How to take Client Backups

You can add as many clients as you want. 

Then run the command below to add any folder that you want to take the backup of:

/usr/local/bin/urbackupclientctl add-backupdir -x -f -d /backup

 

You can also verify from your server-side if the backup files are there on the storage path of your backup server which is shown below in our scenario:

root@ip:~# ls -lhtr /media/BACKUP/urbackup/20.152.19.6/210110-1726/backup/ 
total 0
-rwxr-x--- 1 urbackup urbackup 0 Jan 10 17:15 test.txt

 


Related Tags

urbackuplinux

Share Post
Linux

Samba Sharing

08-12-2022
Linux

Open VPN na Ubuntu 18.04

08-11-2022
Linux

MariaDB Upgrade to 10.2

08-12-2022