# basemodo restore

Put an App's data back as a Backup holds it.

```sh
basemodo restore [OPTIONS] <BACKUP>
```

Its volume (the database and every file under /data) becomes what it was when the Backup was taken: everything written since is gone, so take a Backup first if it may be needed. The Backup stays, and the App runs again afterwards. Restoring a deleted App's last Backup brings the App back.

## Arguments

- `BACKUP` (required): The Backup to restore: its id, as `basemodo backups` lists it or `basemodo backup --json` prints it.
- `--approval <ID>`: The Charge Approval an Admin approves on basemodo.com, as a refused restore gave it, when a deleted App comes back beyond the Apps (or the Always On Apps) its Workspace pays for: wait until it is approved, then restore with it.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

Find the Backup to go back to, then restore it:

```sh
basemodo backups
basemodo restore 0b6f3c1e-6f3a-4d55-9d43-5b8a1f0e2c11
```

Bring back a Workspace's deleted App as an Additional App, once an Admin approved it:

```sh
basemodo restore 0b6f3c1e-6f3a-4d55-9d43-5b8a1f0e2c11 --approval 6f1d0c8e-3b9a-4f2e-8d7c-1a2b3c4d5e6f
```

## Output

With `--json`, it prints {"app", "backup"}. A Backup that does not exist or expired is an error with code backup_not_found. A deleted App beyond what its Workspace pays for asks an Admin for a Charge Approval, as deploy does: with --json or no terminal, an error with code charge_required, its "charges" and its "approval"; --approval waits until it is approved, then restores.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`restore`](https://basemodo.com/docs/mcp/tools/restore). It changes things, so an agent's client may ask you before it runs. Its arguments are the command's, named as JSON keys: `backup` (text), `approval` (text). It answers what the command prints with `--json`.

## Explained in

- [Data: the disk, SQLite, db, run and Backups](https://basemodo.com/docs/data)