Skip to content

basemodo restore

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

Terminal window
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.

Like every command, it also takes the global options --json and --api-url.

Examples

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

Terminal window
basemodo backups
basemodo restore 0b6f3c1e-6f3a-4d55-9d43-5b8a1f0e2c11

Output

With --json, it prints {"app", "backup"}. A Backup that does not exist or expired is an error with code backup_not_found.

From an agent

The local MCP serves it as the tool 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). It answers what the command prints with --json.

Explained in