CWP Backup Server is a separate machine that stores the backups of your CWP servers. It is one program with a web panel, a built-in receiving service for rsync and a restore API. The CWP side is a module in the admin panel and in the user panel.
How it works
- Each CWP server sends its accounts to its own upload area on the backup server with rsync. Only changes are sent.
- When the upload has been quiet for a set time, the backup server takes a snapshot of the upload area.
- A snapshot is read-only for the hosting server. A file that did not change takes no extra space: it is shared with the previous snapshot.
- Old snapshots are removed by the retention rules you set for each server.
- To restore, the CWP module lists the snapshots, lets you browse one and brings back what you choose.
Why a separate backup server
- Protection from a hacked or wiped hosting server. A hosting server can write to its upload area, but it cannot change or delete a snapshot. Ransomware or an attacker with root on the hosting server cannot destroy the earlier backups.
- Nothing to install on the hosting server. The module is part of CWP and uses rsync, which is already there.
- Many versions, little space. Every snapshot looks like a full backup, but only changed files take space.
- Restore by the customer. Users can restore their own files, databases and mail in the user panel, if you allow it.
What is backed up
| Part | Content |
|---|---|
| Account files | the home folder of every account |
| MySQL databases | one dump per database |
| Mailboxes | the mail folders of every domain of the account |
| Account configuration | DNS zones, vhosts, cron, MySQL users and grants |
| Server configuration | /etc, panel settings and system databases |
What you need
| What | Needed |
|---|---|
| Backup server | a Linux machine with systemd, x86-64 or arm64, with enough disk for the backups. A dedicated server or VPS that runs nothing else |
| Hosting servers | CWP with an active CWPpro license |
| Network | the hosting servers must reach the backup server on TCP ports 2222 (rsync) and 2380 (panel and API) |
| Price | the backup server is free, with no limit on the number of servers |
Note: The module in CWP is a CWPpro feature. Without an active CWPpro license it shows a notice and does not connect, send or restore. Backups already stored stay on the backup server.
Not included yet
- PostgreSQL and MongoDB databases.
- Recreating an account that no longer exists on the hosting server. Create the account first, then restore into it.
- Downloading a single file in the user panel (administrators can download).
- Copying snapshots to a second backup server.