Install scripts for the Comet Backup client on Linux, macOS, and Windows. Each script downloads the correct installer from your Comet Server, installs the client, and logs it in either via remote registration (lobby) or with a username and password.
| Platform | Script | Shell |
|---|---|---|
| Linux (Debian/Ubuntu, RHEL/Fedora/CentOS, generic) | linux/install.sh |
bash |
| macOS (Intel and Apple Silicon) | macos/install.sh |
bash |
| Windows | windows/install.ps1 |
PowerShell 3.0+ |
All scripts require administrative privileges and network access to the Comet Server. The product name and installer are fetched from the server's branding, so rebranded clients install under their custom name.
Every script supports two ways to authenticate the client after install:
- Remote registration (lobby) — the default. Only the server URL is required. The device shows up in the Comet Server's lobby, where an administrator adds it to a user account.
- Direct login — set both a username and password. The client is signed in immediately as that user.
# Remote registration (lobby)
sudo SERVER_URL=https://cometserver.com ./linux/install.sh
# Direct login
sudo SERVER_URL=https://cometserver.com \
USERNAME=user-test \
PASSWORD=password \
./linux/install.shEnvironment variables:
| Name | Required | Description |
|---|---|---|
SERVER_URL |
yes | Full URL of the Comet Server, e.g. https://backup.example.com |
USERNAME |
no | Comet user for direct login. Must be set together with PASSWORD. |
PASSWORD |
no | Password for direct login. Must be set together with USERNAME. |
The script detects the distribution from /etc/os-release (with fallbacks to /etc/debian_version, /etc/redhat-release, dpkg, and rpm) and downloads a .deb, .rpm, or generic .run installer as appropriate. curl is used if available, otherwise wget.
# Remote registration (lobby)
sudo BACKUP_SERVER_URL=https://cometserver.com ./macos/install.sh
# Direct login
sudo BACKUP_SERVER_URL=https://cometserver.com \
BACKUP_USERNAME=user-test \
BACKUP_PASSWORD=password \
./macos/install.shEnvironment variables:
| Name | Required | Description |
|---|---|---|
BACKUP_SERVER_URL |
yes | Full URL of the Comet Server |
BACKUP_USERNAME |
no | Comet user for direct login. Must be set together with BACKUP_PASSWORD. |
BACKUP_PASSWORD |
no | Password for direct login. Must be set together with BACKUP_USERNAME. |
The correct installer for Apple Silicon (arm64) or Intel (x86_64) is selected automatically.
Run PowerShell as Administrator:
# Remote registration (lobby)
$env:BACKUP_SERVER_URL = "https://cometserver.com"
powershell -ExecutionPolicy Bypass -File .\windows\install.ps1
# Direct login
$env:BACKUP_SERVER_URL = "https://cometserver.com"
$env:BACKUP_USERNAME = "user-test"
$env:BACKUP_PASSWORD = "password"
powershell -ExecutionPolicy Bypass -File .\windows\install.ps1Environment variables:
| Name | Required | Description |
|---|---|---|
BACKUP_SERVER_URL |
yes | Full URL of the Comet Server, including scheme and any non-default port (e.g. https://backup.example.com:8060) |
BACKUP_USERNAME |
no | Comet user for direct login. Must be set together with BACKUP_PASSWORD. |
BACKUP_PASSWORD |
no | Password for direct login. Must be set together with BACKUP_USERNAME. |
BACKUP_EXE |
no | Set to true to use the EXE installer. Defaults to the MSI installer. |
Requires PowerShell 3.0+ and .NET Framework 4.5+ for TLS 1.2 support. If the installer download fails with a trust relationship error, install the server's CA certificate into the machine's Trusted Root Certification Authorities store.
- The scripts are idempotent for already-installed and already-logged-in clients: if the client is present and authenticated, they exit without reinstalling.
- Downloaded installers are removed on exit, including on failure.
- Product names must contain only alphanumeric characters, spaces, periods, underscores, and hyphens. Rebranded clients using other characters will be rejected.