All settings are in the CWP admin panel under CWP Settings → CWP Backup Server.

Send now
Send now starts a run at once. The page shows the progress and, at the end, how many accounts were sent and which were not, with the reason.
Schedule
Turn on Send automatically and choose how often: once a day at a set time, or every 12, 8, 6, 4 or 2 hours, or every hour. Only changes are sent, so frequent runs are cheap. The backup server takes a snapshot when the upload is done.
What to send
| Option | Sends |
|---|---|
| Account files (home folders) | the home folder of each account |
| MySQL databases | a dump of each database of each account. A dump that did not change is not stored again |
| Mailboxes | the mail of each domain |
| Account configuration | DNS zones, vhosts, cron and MySQL users |
| Server configuration | /etc, panel settings and system databases |
More options
- Leave out of home folders: one rsync pattern per line, for example
/tmp/or*.log. A leading/means the top of each home folder. - Accounts that are not sent: user names separated by commas.
- Remove deleted accounts from the upload area: when an account is deleted in CWP, it is removed from the next upload. Older snapshots still hold it for as long as the backup server keeps them.
- Speed limit: in KB/s, 0 for no limit.
- Users can restore their own files, databases and mail in the user panel: shows *Restore from Backups* to users.
- Scan restored files for malware (ClamAV): see Security.
Disk usage report
With every send the module also reports how full the partitions of this server are. The backup server shows it next to the server, see Dashboard and monitoring. Nothing else about the server is reported.
Integrity key
Database dumps and configuration files are signed with a key that stays on the hosting server. A restore can then tell when such a file was changed on the backup server, and refuses it.
Important: Click Download the key and keep the copy somewhere else, not on the hosting server and not on the backup server. After a reinstall of the hosting server, backups made before it can only be verified with this key. Put it back as /usr/local/cwp/.conf/backup_server/integrity.key.
Command line
P=/usr/local/cwp/php71/bin/php
S=/usr/local/cwpsrv/htdocs/resources/scripts/cwp_backup_server.php
$P $S status # connection and last run
$P $S send # send all accounts now
$P $S send user1 user2 # send only these accounts
The schedule is the file /etc/cron.d/cwp_backup_server. The log is /var/log/cwp/backup_server.log.