> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infinitecompute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Where your data lives

> What happens to your files when you park, stop or delete a server, how backups and volumes keep them, and how to copy results off.

Your files live either on **your server's system disk** or on a **volume** you attach to it. At most locations the system disk also appears under **Storage → Volumes**.

| You... | Files on the system disk | Files on an attached volume |
| - | - | - |
| Stop the server | Kept | Kept |
| Park the server | Kept | Kept |
| Delete the server | **Kept**, unless you ticked **Delete the disk when the server is deleted** at launch, or the launch form said the disk isn't backed up | **Kept**: you can attach the volume to another server |

> [!WARNING]
>
> If the launch form said the system disk is **not backed up** at your server's location, the disk is **permanently deleted** with the server. Keep what you need on a volume there, and copy important results off before you delete the server.

## Backups

There are two kinds of backup: the nightly backups Infinite Compute takes for you, and backups you take yourself.

### Nightly backups

At locations where backups are available, your system disks and volumes are backed up every night. The launch form tells you whether that's the case for the location you pick. These backups aren't listed under **Storage → Volume Backups**.

To get data back from a nightly backup, [contact support](https://docs.infinitecompute.ai/guides/getting-help.md) with the name of the disk or volume and the date you need. How long backups are kept depends on your agreement. A backup holds the disk as it was that night, so anything written since isn't in it.

### Your own backups

You can also back up a volume yourself, for example before a risky change.

**1. Create a backup**

In **Storage → Volumes**, open the volume's **⋮** menu and choose **Create Backup** (under **Snapshot and copy**). Give it a name, and leave **Backup Mode** on **Full Backup** unless the volume already has a full backup. The volume can stay attached to its server; for a consistent copy, pause writing to it while the backup runs.

**2. Find it**

Your backups are listed in **Storage → Volume Backups**, and on the volume's **Backups** tab.

**3. Restore it**

In the backup's **⋮** menu, choose **Restore to New Volume**. The backup is restored to a new volume in the same location it was made, and the original volume isn't changed. Attach the new volume to a server to get at the files.

The option appears once the backup's status is **Available**. If it doesn't appear for an available backup, contact support to restore it.

Backups have their own quota, for their number and total size. Delete the ones you no longer need from their **⋮** menu.

Backups are a safety net, not your only copy. Keep your own copy of anything you can't regenerate. See [Copy your results off the server](#copy-your-results-off-the-server).

## Volumes

A **volume** is storage that exists on its own. It survives deleting the server, and you can attach it to your next one. Use one for datasets and checkpoints, and keep the system disk for the operating system and your code.

**1. Create a volume**

Open **Storage → Volumes** and click **Create Volume**. Give it a name and a size. The storage type is filled in for you. Create it in the same location as your server: a volume attaches only to servers in its location.

**2. Attach it to your server**

In the volume's **⋮** menu, choose **Attach** and pick your server. A volume can be attached to one server at a time.

**3. Format it once, then mount it**

On the server, run `lsblk` and find the new disk: the one with your volume's size and no mount point. In the commands below, replace `<disk>` with its name.

**Only the first time**, format it. This erases the volume:

```bash theme={null}
sudo mkfs.ext4 /dev/<disk>
```

Then mount it, every time you attach it to a server:

```bash theme={null}
sudo mkdir -p /data
sudo mount /dev/<disk> /data
sudo chown ubuntu:ubuntu /data
```

Work in `/data`. Before you delete the server, run `sudo umount /data`, then detach the volume in the console: on the server's page, choose **Actions → Network and storage → Detach volume**.

Volumes and system disks count toward your project's volume and disk space quota, which you can see at the top of **Storage → Volumes**. Delete disks you no longer need to free space.

**Volume snapshots** (**Storage → Volume Snapshots**) save a point-in-time copy of a volume that you manage yourself, for example before a risky change. They count toward your project's disk space too.

## Copy your results off the server

These examples use the SSH config entry from your server's **Connect** box, so `<server-name>` is all you need. See [Save the connection once](https://docs.infinitecompute.ai/guides/ssh-keys-and-connecting.md#save-the-connection-once).

```bash scp (one-off copy to your computer) theme={null}
scp -r <server-name>:~/results ./results
```

```bash rsync (sync, only copies changes) theme={null}
rsync -avz --progress <server-name>:~/results/ ./results/
```

```bash git (code and small files) theme={null}
cd ~/my-project
git add . && git commit -m "Results from run 12"
git push
```

For large datasets and checkpoints, you can also use storage your organization already runs, such as an object storage bucket or a shared file system.

## Related

> [card] [Storage](https://docs.infinitecompute.ai/console/storage.md)
>
> Volumes, volume snapshots and volume backups.

> [card] [Park, stop, or delete](https://docs.infinitecompute.ai/guides/park-stop-delete.md)
>
> Release the GPU when you're not using it.

> [card] [SSH keys and connecting](https://docs.infinitecompute.ai/guides/ssh-keys-and-connecting.md)
>
> Add a key, turn on SSH and connect.

> [card] [Getting help](https://docs.infinitecompute.ai/guides/getting-help.md)
>
> Contact support, including for restores.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.