This page is generated from
docs/backup_red.rst- please edit the source file instead of this page.
Backing Up and Restoring Red
Red can be backed up and restored to any system as long as it is a supported per our End-user Guarantees. The system it's restored to can be different from the system that was backed up.
NOTE
Some 3rd-party cogs may not support all systems that Core Red supports and such cogs may therefore not work, if restored to an unsupported system. This does not affect cogs that do not impose additional restrictions.
Creating backups
Windows
To make a backup, perform the following steps:
-
Stop the bot, ideally with
[p]shutdown. -
Activate your venv.
C:\> "%userprofile%\redenv\Scripts\activate.bat" -
Backup your Red instance with the following command:
(redenv) C:\> redbot-setup backup <your instance name>ATTENTION
Replace
<your instance name>with the name of the instance you want to backup. -
The command will create a backup file for you and show you the path to it.
TIP
If you want to backup your instance to a custom folder,
you can run the redbot-setup backup command as shown below,
replacing C:\path\to\backup\folder with the path to the folder that
you want to backup your instance to:
(redenv) C:\> redbot-setup backup <your instance name> C:\path\to\backup\folder
Linux & Mac
To make a backup, perform the following steps:
-
Stop the bot, ideally with
[p]shutdown. -
Activate your venv.
$ source ~/redenv/bin/activate -
Backup your Red instance with the following command:
(redenv) $ redbot-setup backup <your instance name>ATTENTION
Replace
<your instance name>with the name of the instance you want to backup. -
The command will create a backup file for you and show you the path to it.
TIP
If you want to backup your instance to a custom folder,
you can run the redbot-setup backup command as shown below,
replacing /path/to/backup/folder with the path to the folder that
you want to backup your instance to:
(redenv) $ redbot-setup backup <your instance name> /path/to/backup/folder
Restoring backups
Windows
To restore a backup, perform the following steps:
-
Install Red on the new machine/location, skipping the
redbot-setupstep. -
Activate your venv.
C:\> "%userprofile%\redenv\Scripts\activate.bat" -
Restore your Red instance with the following command:
(redenv) C:\> redbot-setup restore C:\path\to\backup\file.tar.gzATTENTION
Replace
C:\path\to\backup\file.tar.gzwith the path to the backup file that you want to restore from. -
The command will guide you through the restore process.
Linux & Mac
To restore a backup, perform the following steps:
-
Install Red on the new machine/location, skipping the
redbot-setupstep. -
Activate your venv.
$ source ~/redenv/bin/activate -
Restore your Red instance with the following command:
(redenv) $ redbot-setup restore /path/to/backup/file.tar.gzATTENTION
Replace
/path/to/backup/file.tar.gzwith the path to the backup file that you want to restore from. -
The command will guide you through the restore process.
Installation Guides
- Installing Red
- Creating a bot account
- Updating Red
- Backing Up and Restoring Red
- About Virtual Environments
- Setting up auto-restart using batch on Windows
- Setting up auto-restart on Mac
- Setting up auto-restart using systemd on Linux
Cog Reference
User guides
- Getting started
- Running Red on Fluxer
- About Privileged Intents
- About public (big) bots
- Admin
- Alias
- Audio
- Cleanup
- Cog Manager UI
- Core
- CustomCommands
- Dev
- Downloader
- Economy
- Filter
- General
- Image
- Permissions
- Mod
- ModLog
- Mutes
- Reports
- Streams
- Trivia
- Warnings
- Red and End User Data
Cog Creation Guides
- Creating cogs for Red
- Slash Commands and Interactions
- Publishing cogs for Red
- Becoming an Approved Cog Creator
- Versioning
- End-user Guarantees
- Developer Guarantees
- Breaking Change Notices
Cog Development Framework Reference
- Shared API Keys
- Bank
- Bot
- Command Check Decorators
- App Command Check Decorators
- Commands Package
- App Commands Package
- Config
- Data Manager
- Custom Events
- Internationalization Framework
- Mod log
- RPC
- Tree
- Utility Functions
Others
Legacy (Red V2)