---
sidebar_position: 7
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.
>
> Lium (lium.io) is a GPU rental marketplace: rent NVIDIA GPUs by the hour, billed per second.

# Restores

A **restore** copies a completed [backup](./backups) into a pod. Use it to recover work, move to another GPU, or start a new pod with your data.

## Restore path: the rule that matters {#restore-path-the-rule-that-matters}

**The restore path must be a new or empty folder inside `/root`**, such as `/root/restored`. `/root` itself is not allowed.

Restore only copies files. Template, ports and environment variables are not restored.

## Two ways to restore {#two-ways-to-restore}

**Into a running pod**

1. On the pod page, open the **Backups** tab.
2. Click **Restore** on a completed backup.
3. Pick the target pod and a restore path, then click **Confirm**.

![Pod detail Backups tab showing restore section](./assets/backups-tab-pod.png)

**Into a new pod**

1. In **Browse Pods**, click **RENT NOW** on a node.
2. Under **Restore**, click **Select a Backup**.
3. Enter a restore path and click **Deploy**.

![Restore section on the Create Pod page](./assets/create-pod-restore.png)

If another restore or backup of the same backup is still running, the rent is refused before a node is taken. Wait for it to finish or cancel it, then rent again, or rent without a restore and restore later. If the backup is being cleaned up, try again in a few minutes, or rent without a restore.

**Move a pod off a node that is down**

1. On a pod marked **· NODE OFFLINE**, or one whose reboot failed, click **Move to another machine**.
2. The window shows when the latest backup was taken. Files written after that time are lost. A pod with no backup moves to an empty pod; tick **I understand my files will be lost** first.
3. Pick a machine with the same GPUs and click **Move**.

The new pod starts from that backup, restored into `restored` inside its volume folder, and opens with the restore progress. If the rental request is refused, the old pod stays. Once the replacement is accepted, deletion of the old pod starts. A later startup failure is shown on the new pod and does not restore the old one. A pod with no completed backup starts empty, and its files are deleted with the old pod, even if its machine comes back; through the API, send `allow_empty: true` to confirm. If the machine's price went up after the list was shown, nothing moves and the list refreshes. A scheduled termination carries over: the new pod is removed when the old one would have been. If the old pod cannot be deleted, the window says so; click **Move** again to retry, or delete it yourself.

An attached volume moves with the pod: the new pod mounts the same volume. A cluster pod cannot be moved; use **Replace node N** on the cluster bar once its node is down.

**While it runs**

The pod stays usable. Don't touch the restore folder until it finishes. Progress shows on the pod's **Backups** tab.

## Use the API or CLI

```bash
# Trigger a restore into a running pod
curl -X POST https://lium.io/api/pods/<target-pod-id>/restore \
  -H "X-API-Key: $LIUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "backup_id": "<backup-id>",
    "restore_path": "/root/restored"
  }'

# Restore with the CLI
lium bk restore <target-pod> --id <backup-id> --to /root/restored
lium bk restore-logs <target-pod>
```

See the [API reference](/developers/api). You need an [API key](./api-keys).
