Get your free beta license ↗
API operation · backups group
GET

/users/{name}/backups/archive

First published 3 Oct 20260.1.0Unchanged since publication

Inspect a customer's on-demand or nightly backup archive

Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsreadall
Answers200 OK

UrbeStack reads only account.json and returns the account named in it and a description of the archive's contents in archive. The archive must be an UrbeStack customer archive with a matching schema version.

Use own for an on-demand archive or day for a nightly archive. A nonempty own takes precedence over day. The API returns 400 if neither is supplied, the selected value has an invalid format, own ends in .part, or the target account is an administrator.

For a customer or reseller, UrbeStack reads account.json with tar running as the customer. For own, UrbeStack opens the archive as root only if it is a regular file owned by the customer. Symbolic links are refused. For an administrator, UrbeStack inspects the archive as root.

For customers and resellers, the API returns 403 if the customer's package excludes on-demand backups, or if day selects a nightly archive while either backups.enabled or backups.nights_for_customers is off.

As a command

Run as root on the server

Parameters

namepath ·UsernameRequired
ownquery ·string
Filename of a completed archive in the customer's backups/ directory. It starts with an ASCII letter or digit, followed by up to 200 ASCII letters, digits, dots, underscores or hyphens, and ends in .tar.gz.
dayquery ·string, matching ^\d{4}-\d{2}-\d{2}$
Date of the server's nightly backup in YYYY-MM-DD format.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/users/alice/backups/archive?own=text&day=2026-09-09" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "archive": {}
}

Errors

137 errors, each a status and a sentence
400'<zone>' is not a zone this machine knows: timedatectl list-timezones names them
400--as-customer restores from --day or --own, never a file
400--file and --day/--own exclude each other
400--root-owned goes with --file
400--server takes no other option but --trust-files
400<_> is set per domain, on the PHP page's Domains tab, never as a server default
400<dir> is not a day folder of the panel's: no
400<f> is still being written
400<file> is not a customer's archive: its kind is '
400<file> is not one of the panel's archives: its account.json is not readable
400<file> is not one of the panel's archives: no account.json inside
400<file> names no customer
400<file> was made by a panel of another schema version (
400<info.file> belongs to
400<info.file> is a symbolic link: an archive a plugin hands the panel is a regular file of root's own
400<name> has an owner: move them to the administrator before changing their role
400<name> is an administrator: administrators have no home, so nothing to back up
400<name> is an administrator: administrators have no system account, so no shell
400<path> is larger than <MAX_BYTES> bytes
400<src.label> is not a customer's archive
400<src.label> is not one of the panel's archives: its account.json is not readable
400<src.label> is not one of the panel's archives: no account.json inside
400<src.label> was made by a panel of another schema version
400<user.name> is an administrator: administrators have no home
400<value> is kept for the domain's own use; pick another name, like mcp
400A day is named YYYY-MM-DD
400A deny may not cover loopback
400A name is letters, digits and hyphens, up to 32, like mcp
400A new job is queued or running
400A subdomain belongs to the same user as its parent
400A subdomain cannot have a subdomain as its parent
400An administrator has no home to restore into
400An administrator has no shell: only a customer has a system account
400An archive is named <user>-<date>-<time>.tar.gz
400An archive of the customer's own is named with the customer
400Backup exclude '
400Bad entry for <path>
400Cannot demote or suspend the last active administrator
400Crontab: user '
400Document root must be inside <home>
400Domain <name>: <user.name> is not a customer account
400Domain <name>: a <k> must be a number
400Domain <name>: invalid status
400Domain <name>: user <user> not found
400Domain name required
400Domain name too long
400Domains belong to users with role 'user'
400FTP account '<name>': user '<user>' not found
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid PHP version, expected e.g. 8.2
400Invalid boolean
400Invalid document root
400Invalid domain name
400Invalid email address
400Invalid id
400Invalid mail address
400Invalid mail address: local part over 64 characters
400Invalid mail address: no local part
400Invalid mail address: the local part may hold letters, digits, dots, _ + and -
400Invalid package name in export
400Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit
400Invalid password hash
400Invalid password: 8 to 128 printable characters
400Invalid port
400Invalid role: admin, user or reseller
400Invalid setting key
400Invalid status
400Invalid system password hash
400Invalid template name
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Job parameters must be an object
400Name the archive: --name USER with --day DAY or --own FILE, or --file PATH
400Name the archive: own, one of the customer's, or day, a night of the server
400Nothing to change
400One scope at a time: --files, --mail, --database NAME or --records, or none for everything
400Only a customer has an owner: an administrator or a reseller is the administrator's own
400PHP <version> cannot be the default: it is hidden from new choices on this server
400PHP <version> cannot be the default: it is not installed on this server
400PHP settings must be an object of setting: value
400Package <name> belongs to the reseller <pkg.owner>, who is not on this server: import the accounts too, or make the reseller first
400Package <name>: unknown limit
400Protected folder '<f.path>': user '<f.user>' not found
400SSH key '<k.label>': user '<k.user>' not found
400Subdomain '<name>' does not sit under '<parent.name>'
400The archive holds no database named '<dbname>'
400The folder is an absolute path
400The profile carries rule <id> twice
400The scope is one of
400The second factor can only be turned off here; a user enrols from their own page
400The smarthost password in the export is not printable
400This export is encrypted; a passphrase is required
400Unknown PHP version '<version>'
400Unknown job type
400Unknown setting '<key>'
400Unknown ssl key '<k>'
400Username '<value>' is reserved
400jobs.keep_days (<keep>) may not be smaller than jobs.show_days (<show>): a job cannot be shown longer than it is kept; 0 keeps them for good
400ssl must be an object
401Authentication required
403Nightly backups aren't available to customers on this server. Restore from one of the account's on-demand backups instead.
403The package <p.name> does not include <SWITCH_WHAT>{<switch>}
404File not found: <file>
404No archive named
404No folder at <dir>
404Package '<name>' not found
404Parent domain '<parent>' not found
404Setting '<key>' not found
404User '<at.name>' not found
404User '<name>' not found
404User '<o.name>' not found
404User '<owner>' not found
409'<name>' is already an alias here
409<key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another
409<key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another
409<name> is on the package <p.name> of the reseller <p.owner>: change the package before the move
409<name> owns <owned>
409<s.subject> cannot take port <port>:
409<s.subject> cannot take port <port>: <why>
409<s.subject> cannot take port <port>: it is the panel's port (panel.port)
409<user.name> is suspended: an administrator restores a suspended account
409<who> and its bandwidth for the month is used up:
409<who> and its disk is used up:
409<why>; pick another name
409A change is already armed for revert (
409A system account named '<name>' already exists
409BotMail is being turned on for <name> already
409Domain '<name>' already exists
409Sharing is required with this license.
409The archive <info.file> is ${name}'s, not
409The package <p.name> allows <limit>
409The panel cannot take port <port>:
409The panel cannot take port <port>: <why>
409These are the nameservers of a distribution network with several nodes, and every node lists the same ones. To remove a nameserver or move it to another node, use the actions beside its name on DNS zones › Nameservers & addresses, or urbestack-dns-nameserver
409This archive in the backups folder of <o.name> is ${name}'s: restore it at a shell with urbestack-restore --file, which restores it as <name>
409This folder needs what this server does not have yet. Install it first, in this order:\n
409User '<name>' already exists
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-users-name-backups-archive/