Skip to main content

Managing Gunbot Backups: A Step-by-Step Guide

As a Gunbot user, you understand the importance of your config.js file – it's the heart of your trading bot. But what happens when you need to revert to a previous configuration? That's where backups come in. Gunbot automatically creates a backup of your config.js file each time you apply new settings from the GUI. Let's dive into how you can manage these backups effectively.

Understanding Gunbot Backups​

When you save your settings in Gunbot, the software smartly creates a backup of your current config.js file. This backup is stored in the /backups folder located within your main Gunbot folder. This process ensures that you always have a fallback option in case you need to revert to a previous setup.

How to Restore a Backup​

Sometimes, you might want to go back to a previous configuration. Whether it's because a new strategy isn't performing as expected or you simply want to recall a past setup, restoring a backup is straightforward. Here’s how:

  1. Close Gunbot: Ensure that Gunbot is not running before you attempt to restore a backup.

  2. Navigate to the Backup Folder: Open your Gunbot folder and go to backups/config. Here, you'll find all your backup files, named with the date and time they were created.

  3. Choose Your Backup: Look for the backup you wish to restore. The file's name will help you identify when it was created.

  4. Copy Backup Contents: Open the backup file with a text editor (like Notepad). Select all the text (Ctrl+A) and copy it (Ctrl+C).

  5. Prepare the Main Config File: In the main Gunbot folder, find the config.js file and open it with a text editor. If you're using Windows and don't see the .js extension, just look for a file named config.

  6. Replace the Contents: In the config.js file, remove all existing text and paste the contents from your backup file.

  7. Save and Restart: Save the changes to config.js and start Gunbot to apply your restored settings.

Tips for Effective Backup Management​

  • Regularly check your backup folder to ensure it's not getting too crowded.

  • Rename backup files if necessary, to make it easier to identify the configuration they contain.

  • Consider keeping a separate manual backup of your most successful configurations in a different folder.

Restoring a backup in Gunbot is a straightforward process that ensures you can always revert to a previous setup with ease. Keep your trading strategy flexible and secure with effective backup management.