/export
0.1.0Unchanged since publicationCreate an export file on the server
exportBy default, UrbeStack exports a server profile as JSON. The profile includes settings, packages, overrides, hooks, registered files, custom Apache configuration, mail and firewall configuration, server-wide ModSecurity settings, and the enabled PHP extensions for each installed PHP version. It records each plugin's name, version, and enabled status. The profile omits host identity settings and the SSH port.
Set full to true to also export user accounts with password hashes, second-factor secrets, and recovery codes. A full export includes domains and their DNS, mail, and ModSecurity settings, customer SSH keys, database definitions, and database users and grants. It also includes DKIM private keys and smarthost passwords. Use backups or migration to transfer database contents.
A nonempty passphrase requests encryption. UrbeStack reads the first line of passphrase. For a full export, the API returns 400 if passphrase is missing or shorter than 8 characters.
UrbeStack saves the file as urbestack-HOST-TIMESTAMP.json and appends .enc for an encrypted export. An existing file with the same output name is replaced. The API returns 201 with an ExportFile response. Use GET /exports/{file} to download the file.
As a command
Run as root on the serverfullbooleanpassphrasestring, up to 256 charactersExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/export" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"full": true,
"passphrase": "a long passphrase"
}'201 Created{
"encrypted": true,
"file": "urbestack-panel-20260909T101500Z.json.enc",
"kind": "profile",
"name": "alice",
"size": 1
}Errors
6 errors, each a status and a sentence400--encrypt requires --passphrase-stdin400--full exports contain password hashes; use --encrypt400A passphrase of at least 8 characters is required for a full export400Invalid boolean400Invalid file name401Authentication requiredurbestack.com/docs/api/post-export/