Example: a server nuked at 2 a.m.
Pixel Haven is a gaming community of 1,800 members: 52 channels, 31 roles, 47 emojis, a ticket system, an economy. Lina owns it. Max, her co-owner, has a role with Administrator and is on the server's iHorizon owner list. This page follows one bad night, and the half hour it takes Lina to get her server back.
What was set up months ago
Lina followed the checklist, with one mistake (Max on the owner list):
/backup schedule
Every day, every part except Messages (Members ticked) β Save the schedule
/backup create
Every part β a manual reference backup, never rotated
/utils embed
A "Verify to keep your access" message in #verify
/authrestore set channel:#verify message_id:1438870211956412416 role:@Verified
/owner member:@Max
- The AuthRestore key went straight into Lina's password manager.
- iHorizon's role is at the very top, with Administrator. @Verified is just below the staff roles.
- 1,340 members clicked Verify over the months.
- Protection is on, with Channel deletion, Role deletion and Ban members set to Member(s) of allowlist.
The night
/backup listThe rebuild
1. Cut the attacker off (02:10)
There isn't a single channel left. Lina creates a text channel, #recovery, then:
- removes every role from Max in the member list (she's the Discord owner, so she's above him);
- takes him off the owner list:
She doesn't ban him yet: the restore is going to lift every ban made since last night's backup, and his would go with them.
2. Load last night's backup (02:13)
1442519876543210496
9 categories, 52 channels
βοΈ π π¬ π π π·οΈ π¨ π‘οΈ π π₯
1442157488976904192
9 categories, 52 channels
βοΈ π π¬ π π π·οΈ π¨ π‘οΈ π π₯
In the panel, Lina unticks Members (they come later) and keeps everything else, Bans included: it lifts the 420 bans of the night. Wipe and restore.
#recovery disappears with the rest, and the 52 channels come back one by one, in their categories, with their permissions. The 18 deleted roles are recreated; the 13 Max didn't touch are just updated, so members still have them. At 02:24, the report arrives by DM.
3. Ban Max (02:25)
Now the bans are back to last night's list, Lina bans Max's account from the member list. She'll unban him once he has his account back and a new password.
4. Bring the members back (02:27)
The 420 banned members are unbanned, but they're no longer on the server. In the restored #staff, Lina takes the key from her password manager:
| Members found | Members already here | Possible join |
|---|---|---|
| 1,340 | 960 | 380 |
380 of the 420 had verified. Pixel Haven's captcha is on, and returning members don't expect one: before confirming, Lina switches it off with /security config action:Power Off, to switch it back on once it's done. Confirm. Two minutes later:
Nine couldn't be added (they removed iHorizon from their authorised apps, or deleted their account). The old key is dead; Lina saves the new one, received only by her and by DM.
5. Give the roles back (02:31)
Everyone who lost a role tonight lost it in one of two ways: the 18 deleted roles were recreated with new IDs, and the 371 members who came back have no role at all. One more load, of the same backup, with Members only:
Members deletes nothing and doesn't touch the channels, so the report replaces the panel instead of coming by DM. Each member of the backup who is on the server gets their roles and nickname back. Max is in the backup too, with his co-owner roles, but he's banned, so not on the server: he gets nothing back. That's the other reason step 3 comes first.
6. Reconnect what points at channels (02:40)
The channels are back, but they're new channels. Lina goes through what used to point at the old ones:
/setlogs type:Setup all channels
/utils embed (a new "Verify" message in #verify)
/authrestore delete (the old button's channel is gone)
/authrestore set channel:#verify message_id:1443301928374655488 role:@Verified
/authrestore set alone would refuse, since the server already has a key: /authrestore delete forgets the old button first. The last command gives her yet another key (the one from step 4 stops working): it goes into the password manager too. The ticket log channel and the ticket panel get the same treatment, and the GitHub feed's webhook in #dev-news is recreated by hand. The 40 unverified members who were banned are unbanned but gone: an announcement with a fresh invite link goes up.
Finally, Lina fixes the mistake that made the night possible: Max won't go back on the owner list. If he needs to delete channels by hand, the allowlist is enough, and Protection still watches him.
What it took
| Situation | What happens |
|---|---|
| A co-owner on the owner list nukes the server | Protection lets him through: the owners are never checked. Hence a short owner list |
| Every channel is gone | Create one to type in; the restore deletes it and sends the report by DM |
| Restoring the server | /backup load of last night's automatic backup, everything but Members |
| 420 members banned in the night | Bans in the restore lifts their bans⦠and would have lifted the attacker's: ban him after the load |
| The banned members are gone | /authrestore force-join brings back the 380 who verified, on the same server, with the captcha off meanwhile |
| Everyone lost their roles | A second load, Members only, after the force-join |
| Logs, tickets, the Verify button point at deleted channels | Set again by hand; /authrestore delete then /authrestore set gives a new key |
| Unverified members | Not recoverable by iHorizon: an invite link and an announcement |
| How long | About half an hour on a server this size, mostly waiting for the restore |