# RestoreRequest

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `name` (Username, required): A username consists of lowercase letters, digits and underscores. For the user role, it also serves as the system account name.
- `database` (string): Name of the database to restore when scope is database.
- `day` (string, matching ^\d{4}-\d{2}-\d{2}$): Server-local date in YYYY-MM-DD format. To restore the customer's nightly archive from that day's folder, specify day instead of file.
- `file` (string): Absolute path ending in .tar.gz to the customer's UrbeStack archive, retrieved from the plugin's own storage. The job requires a regular file owned by root, follows no symbolic links, and rejects archives that belong to another customer. Specify exactly one of day and file. Only plugin keys can use file. UrbeStack sessions and tokens receive 403 and can select the archive by day. To restore an archive by path from the shell, use urbestack-restore --file.
- `scope` (string, one of everything, files, mail, database, records): Restore scope. The everything scope restores records, the home directory including website files and mail, and all databases. The files scope restores the home directory excluding mail, mail restores mailboxes, database restores one dump selected by the database field, and records restores only records.

## Used by

- [POST /backups/restore](https://urbestack.com/docs/api/post-backups-restore.md): Queue a restore job for a customer backup archive
