# Server Backups

## What are server backups?

If you are worried that your server will be raided or destroyed, you can create a backup. Backups backup roles, channels, permissions, and some messages, so you don't have to worry about losing everything. Backups can also be restored in a different server.

## Backup Limits

You can create one backup every 25 minutes, and unused backups are deleted from our database after 10 days. Once you restore a backup, the backup is gone forever.

## How To Create a Backup

In your server, run `ch!backup`. Depending on the amount of roles and channels, this could take a while. Once you see the conformation message, your backup was saved! Check your DMs for the backup ID and other info.

![](https://2382464231-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_FD6IWYvVEEAuQCcg6%2F-MMxfz-lrZm_I0oaTOt7%2F-MN-MenTPDcLoix6jUTc%2FDiscordCanary_Z6f8xBs856.png?alt=media\&token=9fe09830-fb1b-4318-a917-cea417544fed)

## How To Restore a Backup

To restore a backup, run `ch!restore <backup ID>`. The bot will ask you to make sure you want to do this. **Restoring a backup will delete all channels, roles, permissions, and emojis.** Run `ch!confirm` in the next 15 seconds to continue, or do nothing to cancel. If you accidentally restore a backup, there is nothing we can do to fix it.

After you confirm, the bot will delete all channels and roles, then create them. You will receive a DM when the bot has finished restoring a backup.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.channelbot.xyz/guides/server-backups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
