Backups

Automatic and manual copies of your server's roles, channels, permissions, settings and members' roles, with a comparison against the server now and a step-by-step restore.

Backups saves your server's structure, its roles, categories and channels, their permissions, the server settings and which member has which role, so you can bring back anything that gets deleted or changed with a few clicks. Backups run automatically on a schedule, and you can make one yourself at any time.

When something goes wrong, compare a backup with the server as it is now, choose exactly what to restore, and DotBot rebuilds it, giving deleted roles back to everyone who had them. A safety backup is always made first, so a restore can itself be undone.

What is saved

SavedNot saved
Roles: name, color, permissions, icon, "shown separately", mentionable and orderMessages (Discord doesn't let bots copy them)
Categories and channels: permissions, topic, slowmode, age restriction, voice settings and orderEmojis and stickers
Server settings: name, icon, verification level, content filter, notifications, AFK and system channels, rules and updates channels, language, boost progress barMembers themselves (only their role IDs)
Each member's roles (member ID and role IDs only), if enabledRoles managed by bots or integrations can't be recreated as such

Quick start

  1. Open Backups → Overview. Automatic backups are on every day by default.
  2. Check the status card and fix anything it lists. Most importantly, move DotBot's role to the top of the role list so it can recreate every role.
  3. Click Back up now to make the first backup right away.
  4. Optionally choose a Notification channel so you're told when a restore ends or an automatic backup fails.

Tip

Backups and Anti-Nuke work best together: when Anti-Nuke stops someone, it uses the latest backup to recreate deleted channels and roles with every permission.

Overview

Status card

Shows whether your server is backed up, how many backups there are, the latest one and how much space they use. It warns you when DotBot is missing permissions (Manage Roles, Manage Channels, Manage Server), when roles are above DotBot's role (they're saved, but DotBot can't recreate them in their place or give them to members), when the last automatic backup failed, when automatic backups are off, or when there are no backups yet.

Automatic backups

SettingWhat it does
How oftenEvery 6 hours, every 12 hours, every day (default), every week, or off (only backups you make yourself). Every 6 hours suits busy servers that change often; every day is enough for most.
Automatic backups to keep1 to 30 (7 by default). The oldest are deleted on their own. With 7 daily backups you can go back up to a week. Pinned backups and the ones you make yourself are never deleted automatically.
Save members' rolesRemembers who had each role, so a deleted role can be given back to everyone who had it. DotBot only stores member IDs and role IDs. On by default.
Skip when nothing changedDoesn't save a new automatic backup if the server is exactly the same as in the last one, so older backups last longer. On by default.
Notification channelDotBot writes here when a restore ends or an automatic backup fails. Empty = no messages.

If an automatic backup fails, DotBot tries again an hour later, shows the error on the status card and, if you chose a notification channel, tells you there once (not every hour while it keeps failing).

The backup list

Every backup of the server, filterable by kind:

KindWhat it is
AutomaticMade on your schedule.
ManualMade with Back up now or /backup create.
Before a restoreThe safety backup made before every restore (the latest 10 are kept, for 30 days).
Before Anti-NukeMade by Anti-Nuke when it acts.
ImportedLoaded from a file.

Each backup shows how many roles and channels it has, whether the member scan was complete or partial, who made it and when. From its menu you can:

  • View what's inside: channels, roles, permission overrides and which roles belong to bots or integrations.
  • Compare it with the server now.
  • Restore it.
  • Download as a file: the structure without members, to keep yourself or to load in another server to copy its channels and roles.
  • Pin it so it's never deleted automatically (up to 25 automatic and safety backups can be pinned).
  • Rename or Delete it.

Click Load a file to import a backup file (up to 8 MB). You can keep up to 25 manual and imported backups, and each backup can be up to 25 MB. Up to 6 manual backups can be made per hour (from the dashboard and /backup create together).

Backups loaded from a file

A file can come from anywhere, so DotBot is careful with what it grants. When you restore an imported backup:

  • Permissions that can damage a server (Administrator, managing the server, its roles, channels, webhooks or emojis, kicking, banning and mentioning everyone) are not given to @everyone, to roles that already exist or to specific people. Everything else in the backup is restored as usual, and nothing these roles already have is taken away for this reason.
  • Roles the restore creates keep the permissions from the file: nobody has them until someone hands them out.
  • From a file of another server, channel permissions given to specific people aren't copied.

Compare and the restore report name the roles and channels this applies to, so you can give those permissions in Discord yourself if you want them. Backups DotBot made of your server (automatic, manual and safety backups) are always restored whole.

Comparing

Compare shows what changed since the backup:

  • Roles missing and channels missing (deleted since the backup).
  • Changed roles and channels, field by field (name, color, icon, permissions, topic, slowmode, category, voice settings…).
  • Not in the backup: roles and channels created afterwards.
  • Server settings changed.

It also warns about roles in the backup that are above DotBot's role, and whether there's room to recreate everything (Discord allows 250 roles and 500 channels). A backup from another server matches nothing: everything in it would be created new, and members' roles, DotBot's settings and channel permissions given to specific people aren't restored.

Restoring

Open Backups → Restore, pick a backup and check What's different now. Then choose what to restore. Only what you turn on is touched, and channels and roles that still exist keep their ID, so links and mentions keep working.

OptionWhat it does
Create the deleted roles againThey come back with their name, color, permissions and order.
Create the deleted channels againThey come back with their permissions and settings, but empty: messages can't be brought back.
Put back what changedNames, colors, icons, permissions, topics, categories, voice settings and order go back to how they were. A channel whose category was deleted and isn't created again stays where it is now.
Server settingsName, icon, verification level, system and AFK channels and more. A setting that pointed to a channel that no longer exists keeps the channel the server uses now.
Members' rolesGive back the roles created again (everyone who had a deleted role gets it back), Give back every role they had (also roles that still exist but were taken away), or Don't touch members.
Delete what isn't in the backupDeletes channels and roles created after the backup. Messages in those channels are lost forever, so you must type DELETE to confirm. Off by default.

Before deleting extras, DotBot checks that the eligible channels and roles still match your confirmation. If their IDs change or a required creation fails, the extras are kept. Repeating a restore recognizes channels and roles that DotBot recreated in an earlier run.

Before changing anything, DotBot saves a safety backup of the server as it is now. If the safety backup fails, nothing is changed.

The restore runs in steps: saving the safety backup, creating roles, creating channels, putting things back as they were, putting everything in order, deleting extras (if chosen), restoring server settings, giving members their roles back, and updating DotBot's own settings (log channels, roles, panels…) to point to the recreated channels and roles. You can follow the progress, leave the page, or Stop it: DotBot stops before the next change and keeps what it already did. Only one restore runs at a time in a server. On big servers it can take a few minutes because of Discord's limits.

If some module references could not be updated, use Retry pending settings in the report.

When it ends you get a report: what was created again, put back, how many members got roles back, which DotBot settings were updated, and anything that couldn't be restored and why. Past restores lists previous restores with Review safety backup to select the copy made before it and review a new restore.

Important

Only the server owner and people with full access to the dashboard can restore a backup.

Commands

CommandWhat it does
/backup create [label:]Backs up the server's roles, channels and permissions now, with an optional name.
/backup listShows the latest backups.

Permissions DotBot needs

Manage Roles, Manage Channels and Manage Server. DotBot's role should be at the top of the role list so it can recreate and give every role.

Limits

LimitValue
Automatic backups kept1 to 30 (you choose)
Manual and imported backups25
Manual backups per hour6
Pinned automatic and safety backups25
Size of one backup25 MB
Safety backups before a restorethe latest 10, kept 30 days
Restores per hour3
Restore historykept 1 year
Backup file to import8 MB
Files one person can send to import30 per hour (10 imported backups per server per hour)

FAQ

Can Backups bring back deleted messages?

No. Discord doesn't allow bots to copy or restore messages. Deleted channels come back with their permissions and settings, but empty.

Will restoring delete anything?

Not unless you turn on Delete what isn't in the backup and type DELETE. By default a restore recreates missing channels and roles and returns the recreated roles to members. Enable Put back what changed to update existing resources. Channels that still exist keep their messages.

What happens to other bots' settings after a restore?

Channels and roles created again get a new ID in Discord. DotBot updates its own settings to the new IDs, but other bots may need to be set up again.

Can I copy my server's layout to a new server?

Yes. Download a backup as a file, then in the other server open Backups, click Load a file and restore it. Everything is created new; members' roles, DotBot's settings and channel permissions given to specific people aren't copied between servers, and @everyone doesn't receive permissions that can damage a server from a file. To copy DotBot's module settings too, use Settings → Import & export in the dashboard.

Why couldn't some roles be restored?

Roles above DotBot's highest role can't be created in their place or given to members. Move DotBot's role to the top in Server Settings → Roles and restore again.

Do members who left get their roles back?

No. Only members who are in the server when the restore runs get roles back.

Can I undo a restore?

Yes. Every restore makes a safety backup first. In Past restores, click Review safety backup, choose the changes to apply and confirm the restore.

How do I keep a backup forever?

Pin it. Pinned backups and manual backups are never deleted automatically.

Why wasn't a new automatic backup made today?

With Skip when nothing changed on, DotBot doesn't save a new automatic backup if the server is exactly the same as the last one. This keeps older backups around longer.