Installation of CyBorgBackup

The following covers three different installation methods of CyBorgBackup.

Debian Package

The latest release of CyBorgBackup is available as a Debian package and can be downloaded from github releases page:

# apt install git postgresql-all rabbitmq-server python3-pip python3-virtualenv python3-setuptools python3-venv systemd nginx git
# wget https://api.github.com/repos/cyborgbackup/cyborgbackup/releases/latest -O - |grep -oP '"browser_download_url": "\K(.*)(?=")' |wget -i -
# dpkg -i cyborgbackup_X.X.X_all.deb

To add UI system:

# wget https://api.github.com/repos/cyborgbackup/cyborgbackup-ui/releases/latest -O - |grep -oP '"browser_download_url": "\K(.*)(?=")' |wget -i -
# dpkg -i cyborgbackup-ui_X.X.X_all.deb

Note : MongoDB is not provided by the Debian repository, you need to follow mongodb documentation.

Docker Install

To install CyBorgBackup under Docker, run this command in your terminal of choice:

$ wget https://raw.githubusercontent.com/cyborgbackup/cyborgbackup/master/docker-compose.full.yml -O docker-compose.yml
$ cat > .env <<EOF
POSTGRES_PASSWORD=cyborgbackup
POSTGRES_USER=cyborgbackup
POSTGRES_NAME=cyborgbackup
POSTGRES_HOST=postgres
RABBITMQ_DEFAULT_USER=cyborgbackup
RABBITMQ_DEFAULT_PASS=cyborgbackup
RABBITMQ_DEFAULT_VHOST=cyborgbackup
SECRET_KEY=$(openssl rand -base64 47|sed 's/=//g')
EOF
$ docker-compose up
$ docker-compose exec web /bin/bash
web$ python3 /cyborgbackup/manage.py loaddata settings
web$ echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin@cyborg.local', 'admin')" | python3 /cyborgbackup/manage.py shell
web$ exit

If you don’t have docker-compose or docker installed, head over to the website for installation instructions.

Install from Source Code

CyBorgBackup is developed on GitHub, where the code is always available.

You can either clone the public repository:

$ git clone https://github.com/cyborgbackup/cyborgbackup.git

Or, download the tarball:

$ curl -OL https://github.com/cyborgbackup/cyborgbackup/tarball/master
# optionally, zipball is also available (for Windows users).

The UI interface can be found on Github, the the code is always available. And the public repository can be found at the following address:

$ git clone https://github.com/cyborgbackup/cyborgbackup-ui.git

To build the UI docker image run the following:

$ docker build --no-cache --pull -t cyborgbackup/cyborgbackup-ui:latest .

Depending of your system, CyBorgBackup needs the following dependencies :

  • python3
  • python3-pip
  • postgresql-server
  • rabbitmq-server
  • nginx

To use the CyBorgBackup container with Docker, launch the following command:

$ make cyborgbackup-docker-build
$ make docker-compose-up

Connecting to the interface

You can connect to the CyBorgBackup interface at : http://localhost:8000
Default account is :