| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Caution
Development version. Features may be incomplete, APIs may change, and bugs are expected. Do not use in production without thorough testing.
WHMCS module for resellers of remote-backups.com. Lets hosting providers sell managed backup storage to their customers through automatic provisioning, usage tracking, and billing.
Developed by Nerdscave Hosting
Two components: an addon module for admin/config and a server module for provisioning and the client area.
Handles config and admin. On activation it creates a database table for datastore mapping. Admins set their API token, price per 1000 GB, and size limits. The dashboard lists all datastores with current size, usage, and links to WHMCS services.
Handles provisioning. On order, WHMCS calls CreateAccount which creates a datastore via the API and stores the mapping. Termination deletes the datastore. Upgrades/downgrades resize it.
Important
Billing is based on PROVISIONED size, not actual used storage.
Even an empty datastore is billed at its full provisioned size. This matches how remote-backups.com charges resellers.
On invoice creation, the module fetches the rescale-log from the API (GET /reseller/datastore/{id}/rescale-log) and calculates prorated cost:
Formula:
Average GB = (Σ Size_GB × Hours_at_that_size) / Total_hours_in_period Monthly Cost = Average_GB × (Price_per_1000GB / 1000)
Given this rescale-log for a monthly billing cycle:
| Date/Time | Event | From | To |
|---|---|---|---|
| Jan 18, 13:31 | Datastore created | - | 500 GB |
| Jan 19, 01:00 | Autoscaling (automatic) | 500 GB | 600 GB |
| Feb 18, 13:31 | Billing period ends | - | - |
Calculation:
At €10/1000GB/month: 598.45 GB × €0.01 = €5.98
The invoice description will show: "Usage-based billing: 598.45 GB average over 744 hours"
Copy the module directories to your WHMCS installation:
modules/addons/remotebackups/ -> /path/to/whmcs/modules/addons/remotebackups/ modules/servers/remotebackups/ -> /path/to/whmcs/modules/servers/remotebackups/
Go to Setup, then Addon Modules. Find Remote Backups in the list and click Activate. Click Configure and enter:
Go to Setup, then Products/Services, then Products/Services. Create a new product and under Module Settings, select Remote Backups. Configure:
The module will create datastores named like "backup-client123-service456" to ensure uniqueness.
Base URL: https://api.remote-backups.com (reseller API, no /v1 prefix).
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /reseller/datastore | List all datastores |
| POST | /reseller/datastore | Create a new datastore |
| GET | /reseller/datastore/:id | Get datastore details |
| PATCH | /reseller/datastore/:id | Update datastore settings |
| DELETE | /reseller/datastore/:id | Delete a datastore |
| PATCH | /reseller/datastore/:id/prune-settings | Update retention and schedule |
| GET | /reseller/datastore/:id/graph?range=hour | Fetch metrics data |
| GET | /reseller/datastore/:id/rescale-log?range=30d | Get resize event history |
Sizes go to the API in GB. The API returns bytes, which the module converts back.
Size constraints: 500-10000 GB, increments of 100 GB.
Created on activation:
mod_remotebackups_datastores — maps datastore IDs to WHMCS service IDs, stores current size.
Check your API token. Go to Addons > Remote Backups > Test Connection.
Make sure the module files are in the right place. The server module at /modules/servers/remotebackups/ needs to be able to load the addon module at /modules/addons/remotebackups/.
Check the module log under Utilities > Logs > Module Log. All API requests and responses are logged there.
GPL-3.0-or-later
Copyright 2026 Moritz Mantel / Nerdscave Hosting
| Back | FazBrowse Home | New Git URL |