Skip to content
CWPControl Web PanelDocumentation
  1. Home
  2. Docs
  3. CWP Backup Server
  4. Installing the backup server

Installing the backup server

Updated

Requirements

WhatNeeded
SystemLinux with systemd, x86-64 or arm64. Tested on AlmaLinux 9 with SELinux enforcing
Programsrsync and curl or wget. The installer installs rsync when it is missing
Diska large volume for the backups. XFS or Btrfs is recommended: changed files can then share unchanged blocks
PortsTCP 2380 (panel and restore API) and TCP 2222 (rsync). The system SSH on port 22 is not used and not changed

Important: Do not install the backup server on a hosting server. It holds a copy of everything, so give it its own machine. See Security.

Install

Run this as root on the machine that will store the backups:

curl -fsSL https://static.cdn-cwp.com/files/cwp/backup-server/install.sh | sh

The installer:

  • downloads the program for your CPU and checks its checksum,
  • puts it in /usr/local/bin/cwp-backup and its data in /var/lib/cwp-backup,
  • creates and starts the service cwp-backup,
  • opens ports 2380 and 2222 in CSF, firewalld or ufw when one of them runs,
  • creates the user admin and prints its password once.

At the end it prints the address of the panel, for example https://203.0.113.10:2380. Keep the password; it cannot be shown again.

First sign-in

  1. Open the panel address in a browser. The panel uses a self-signed certificate until you set your own, so the browser asks you to confirm it.
  2. Sign in as admin with the printed password.
  3. Go to Settings → Security and change the password. Turn on two-factor sign-in there as well.
  4. Go to Settings → General and set the Storage folder to your large volume. Do this before you add servers.
  5. Optional: in Settings → Security limit the panel to your own IP addresses and set a TLS certificate file and key.
  6. Optional: in Settings → Notifications set e-mail, Telegram or a webhook for alerts.

Commands

systemctl status cwp-backup        # the service
journalctl -u cwp-backup -f         # its log
cwp-backup user set NAME            # create a panel user or reset a password
cwp-backup user no2fa NAME          # turn off two-factor sign-in for a user
cwp-backup version

Firewall

Each hosting server must be able to connect out to the backup server on ports 2222 and 2380. With CSF on the hosting server add both ports to TCP_OUT in /etc/csf/csf.conf and run csf -r.