/users/{name}/backups/archive
0.1.0Unchanged since publicationInspect a customer's on-demand or nightly backup archive
backupsreadallUrbeStack 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 serverParameters
namepath ·UsernameRequiredownquery ·stringdayquery ·string, matching ^\d{4}-\d{2}-\d{2}$Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/users/alice/backups/archive?own=text&day=2026-09-09" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"archive": {}
}Errors
137 errors, each a status and a sentence400'<zone>' is not a zone this machine knows: timedatectl list-timezones names them400--as-customer restores from --day or --own, never a file400--file and --day/--own exclude each other400--root-owned goes with --file400--server takes no other option but --trust-files400<_> is set per domain, on the PHP page's Domains tab, never as a server default400<dir> is not a day folder of the panel's: no 400<f> is still being written400<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 readable400<file> is not one of the panel's archives: no account.json inside400<file> names no customer400<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 own400<name> has an owner: move them to the administrator before changing their role400<name> is an administrator: administrators have no home, so nothing to back up400<name> is an administrator: administrators have no system account, so no shell400<path> is larger than <MAX_BYTES> bytes400<src.label> is not a customer's archive400<src.label> is not one of the panel's archives: its account.json is not readable400<src.label> is not one of the panel's archives: no account.json inside400<src.label> was made by a panel of another schema version400<user.name> is an administrator: administrators have no home400<value> is kept for the domain's own use; pick another name, like mcp400A day is named YYYY-MM-DD400A deny may not cover loopback400A name is letters, digits and hyphens, up to 32, like mcp400A new job is queued or running400A subdomain belongs to the same user as its parent400A subdomain cannot have a subdomain as its parent400An administrator has no home to restore into400An administrator has no shell: only a customer has a system account400An archive is named <user>-<date>-<time>.tar.gz400An archive of the customer's own is named with the customer400Backup exclude '400Bad entry for <path>400Cannot demote or suspend the last active administrator400Crontab: user '400Document root must be inside <home>400Domain <name>: <user.name> is not a customer account400Domain <name>: a <k> must be a number400Domain <name>: invalid status400Domain <name>: user <user> not found400Domain name required400Domain name too long400Domains belong to users with role 'user'400FTP account '<name>': user '<user>' not found400Invalid IPv4 address400Invalid IPv6 address400Invalid PHP version, expected e.g. 8.2400Invalid boolean400Invalid document root400Invalid domain name400Invalid email address400Invalid id400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid package name in export400Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit400Invalid password hash400Invalid password: 8 to 128 printable characters400Invalid port400Invalid role: admin, user or reseller400Invalid setting key400Invalid status400Invalid system password hash400Invalid template name400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Name the archive: --name USER with --day DAY or --own FILE, or --file PATH400Name the archive: own, one of the customer's, or day, a night of the server400Nothing to change400One scope at a time: --files, --mail, --database NAME or --records, or none for everything400Only a customer has an owner: an administrator or a reseller is the administrator's own400PHP <version> cannot be the default: it is hidden from new choices on this server400PHP <version> cannot be the default: it is not installed on this server400PHP settings must be an object of setting: value400Package <name> belongs to the reseller <pkg.owner>, who is not on this server: import the accounts too, or make the reseller first400Package <name>: unknown limit400Protected folder '<f.path>': user '<f.user>' not found400SSH key '<k.label>': user '<k.user>' not found400Subdomain '<name>' does not sit under '<parent.name>'400The archive holds no database named '<dbname>'400The folder is an absolute path400The profile carries rule <id> twice400The scope is one of 400The second factor can only be turned off here; a user enrols from their own page400The smarthost password in the export is not printable400This export is encrypted; a passphrase is required400Unknown PHP version '<version>'400Unknown job type400Unknown setting '<key>'400Unknown ssl key '<k>'400Username '<value>' is reserved400jobs.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 good400ssl must be an object401Authentication required403Nightly 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 found404Parent domain '<parent>' not found404Setting '<key>' not found404User '<at.name>' not found404User '<name>' not found404User '<o.name>' not found404User '<owner>' not found409'<name>' is already an alias here409<key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another409<key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another409<name> is on the package <p.name> of the reseller <p.owner>: change the package before the move409<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 account409<who> and its bandwidth for the month is used up: 409<who> and its disk is used up: 409<why>; pick another name409A change is already armed for revert (409A system account named '<name>' already exists409BotMail is being turned on for <name> already409Domain '<name>' already exists409Sharing 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-nameserver409This 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:\n409User '<name>' already existsurbestack.com/docs/api/get-users-name-backups-archive/