---
title: /backup
description: Backup and restore server structure and configuration.
---
## Overview

`/backup` creates and restores full server backups including roles, channels, emojis, stickers, bans, member roles, messages (up to 350 per channel), and bot config.

<Banner variant="warning">
This command is not available as a slash command in BetterAntiSpam. This page documents its intended behavior for when it's re-enabled.
</Banner>

## Required Permissions

- **Administrator**

## Subcommands

### create

| Option | Required | Description |
|--------|----------|-------------|
| `name` | No | Custom name for the backup (default: timestamp) |

Creates a backup and saves it locally. Restoration can take several minutes.

### load / restore

| Option | Required | Description |
|--------|----------|-------------|
| `backup` | Yes | Backup ID or name (from `/backup list`) |

Loads and applies a backup. This restores server settings, roles, channels, messages, member roles, bans, and bot configuration. Protected channels (log, case, verification, password) may be preserved.

### list

Shows all backups for the server, sorted by most recent.

## Behavior

- **Create** runs in the background and sends progress updates.
- **Restore** clears existing roles and channels (except protected ones) and recreates them from the backup.
- Bot channels (log, case, verification, password) are protected during restore.
- Restoration can take a long time; do not close the window until it completes.