Updating¶
This guide is for updating between minor versions (e.g. 4.0 to 4.1). If you are updating from the last major version (e.g. 3.x to 4.x), please refer to the migration guide.
BACKUP, git fetch, checkout, npm install (migrate), check changelog instructions (config changes, etc.), restart, publish commands (links).
Example
1 2 |
|
1 |
|
1 |
|
Docker¶
If you are running the container using docker-compose file, run the following commands :
1 |
|
1 |
|
Alternatively, you can use Watchtower to do this automatically when an update is released, Do not use the latest
tag when automating updates as major updates will break the bot.
Standalone¶
Railway¶
Railway doesn't really offer a first-party solution for backing up a database server. Instead, follow the guide for their workaround to export your database to an AWS S3 bucket at https://blog.railway.app/p/automated-postgresql-backups
Pterodactyl¶
Standard Pterodactyl doesn't offer a first-party solution for exporting or downloading databases. If your server host has an option to duplicate or download/export your database, do that. If not, you'll need to access your server hosts phpMyAdmin page. Contact them directly if you need help with doing this as we can't really help with this.
PebbleHost¶
This guide assumes you're using a Bot hosting plan from PebbleHost and not a dedicated server, VPS or other service.
1) Locate your service on the game panel and go to the MySQL Database tab
2) Click on "More information"
3) Click on the "Administration link", this will open a new tab in your browser, wait for that to load before proceeding
4) Go to the "Databases" section
5) Select the databse you're using from the list
6) Click "Export"
7) Configure the settings how you like, then click "Go" and download the generated file
If you'd like to import your export again, do all steps up to 5 and instead click "Import". Pick a file and click "Go".