# $serverSnapshot[] — Save the structure of a server

`$serverSnapshot[]` returns a JSON text (version 1) describing the roles, categories, channels (type, topic, slowmode, NSFW) and permission overwrites of the server. Messages, members and files are not included. Keep the text with `$fileUpload` and give it back to `$serverRestore`. Not in BibiScript.

## Syntax

```
$serverSnapshot[(serverID)]
```

## Parameters

| Parameter | Description |
|---|---|
| `serverID` | Optional. The server to read. If omitted, the current server (or the one chosen by `$useGuild`). |

## Return Value

- **Type**: `string` (JSON)

## Examples

```bdfd
$fileUpload[backups/$guildID/$getTimestamp.json;$serverSnapshot]
```
