How to migrate your data from an older version and move your database to a different server.Documentation Index
Fetch the complete documentation index at: https://uncoded.ch/docs/llms.txt
Use this file to discover all available pages before exploring further.
Upgrade your unCoded version
How to migrate an older bot database to the latest version. Step-by-step guide to migrating an older bot database to the latest version. Learn how to safely migrate an older bot database to the newest version.Before performing any new installation, make sure to back up your old database first. See Step 4.If you already know how to use DBeaver, jump to: Restore the old database to the new bot.
๐ฅ๏ธ Server configuration
Make sure you have already installed the latest Linux version, including CapRover integration, on your server.If not, please follow the correct setup guide here: Setup your Server.
๐ค Create an unCoded bot
Create a new trading bot in unCoded. You can find the detailed instructions here: Create your unCoded Bot.
Make sure you are signed in to the website with your Google account.Also make sure that you have added your Binance UID / Binance API.
๐๏ธ Prepare your Database
This guide is based on DBeaver, but other database tools can be used as well.Download the software to your device and install it..png)
.png)
.png)
.png)
.png)
Open the database port for DBeaver (Netcup / Caprover)
Before downloading the database, you need to expose a port for DBeaver first.In your bot, open โYOUR-BOT-NAME-dbโ..png)
- Then navigate to โApp Configurationโ and add a Port mapping.
.png)
- Set both fields to โ5432โ.
- Click Save & Restart to apply the changes.
Prepare your Railway Instance
Prepare your Zeabur Instance
To connect DBeaver to your Zeabur database, you do not need to configure or enable anything manually. To establish the connection, we simply need to locate the correct database values in Zeabur and enter them into DBeaver..png)
- To get the required values, first open your project folder in the Zeabur dashboard.
.png)
- Under the Overview section, you will need the PostgreSQL Password. Save this value for later.
.png)
- Then switch to the Networking section.
- There, copy the domain/IP and the corresponding port.
You will learn how to use these details in DBeaver in the following section.
๐ Connect DBeaver to your database and Backup your Data
Now connect your database to DBeaver to gain access.Open DBeaver and click โNew Database Connectionโ in the top left corner..png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
Repeat the database connection steps for the new app so you can restore the backup there.
.png)
- Select **โPostgreSQLโ**and click โNextโ.
.png)
- Then enter the following details:
- โHost: Your server IP
- โPort:
5432 - โAuthentication โ Password: Your
POSTGRES_PASSWORDfrom CapRover
- Click โFinishโ.
.png)
- Your server should now appear in the left sidebar. Select it and click โConnectโ in the top left corner. If the connection is successful, a green checkmark will appear and you will be able to open the database.
- Open the database named
uncoded_db.
.png)
- If it does not appear, right-click your server connection and select โEdit Connectionโ.
.png)
- Then enable โShow all databasesโ and press โOKโ. Reconnect your Database.
.png)
-
After that,
uncoded_dbshould be visible. - Right-click the database and select Tools โ Global Backup.
.png)
- Choose the database and click โNextโ.
.png)
- Under โOutput folderโ, select the location where the backup should be saved and give the backup file any name you want.
- Then click โStartโ. Your database will now be backed up to your device.
.png)
โ๏ธ Restore the old database to the new bot
Once you have successfully connected the new bot / server to DBeaver, right-click the .png)
Once the restore is complete, restart your unCoded trading bot in your Caprover App. The migration is now finished.
uncoded_db database you want to replace, then select Tools โ Restore..png)
- Enable โClean Databaseโ, then select the backup file from your computer. After that, click โStartโ.
.png)
HAPPY TRADING!