Skip to content

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
mkdir ~/backup
cp user/database.db{,-journal} ~/backup
1
mysqldump -u <username> -p <database> | gzip > tickets.sql.gz
1
pg_dump -U <username> <database> | gzip > tickets.sql.gz

Docker

If you are running the container using docker-compose file, run the following commands :

1
docker pull eartharoid/discord-tickets:4.0
Once pull is done, simply run :

1
docker-compose up -d --force-recreate
to recreate the docker container with the latest image.

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

1

2) Click on "More information"

2

3) Click on the "Administration link", this will open a new tab in your browser, wait for that to load before proceeding

3

4) Go to the "Databases" section

4

5) Select the databse you're using from the list

5

6) Click "Export"

6

7) Configure the settings how you like, then click "Go" and download the generated file

7

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".

Comments