Hubs

Hubs

  • Hubs Foundation
  • Docs
  • GitHub
  • Help

›Setting Up Your Hub

Introduction

  • Welcome
  • Getting Started With Hubs
  • Building Scenes with Spoke
  • Creating Custom Avatars
  • Hosting Events in Hubs

Setting Up Your Hub

  • Beginner’s Guide to CE
  • Set up SMTP email service
  • Download and install doctl
  • What’s next?
  • Troubleshooting and FAQs
  • How to back up your Hubs instance
  • Regenerating SSL Certificates
  • Managing Your Hub's Content
  • Frequently Asked Questions
  • Contact Us

Hubs Fundamentals

  • Create and Join Rooms
  • Hubs Features
  • Sharing Avatar Links Privately
  • User Settings
  • Room Settings
  • Controls
  • Discord Bot
  • Troubleshooting
  • FAQ

Spoke Documentation

  • Create Project
  • User Interface
  • Spoke Controls
  • Adding Content
  • Architecture Kit
  • Grid
  • Skyboxes
  • Lighting and Shadows
  • Physics and Navigation
  • Publish Scenes

For Creators

  • Advanced Avatar Customization
  • Linking Hubs Rooms
  • Using the Blender glTF Exporter
  • Blender Add-on Components
  • Optimizing Scenes
  • Introduction to Behavior Graphs

For Developers

  • System Overview
  • Build a Custom Client
  • Contributing
  • Hubs Query String Parameters
  • GitHub Workflows

Hubs Client development

  • Hubs Client development Basics
  • Core Concepts for Gameplay Code
  • Hubs Client development Interactivity
  • Hubs Client development Networking

Hubs Admin Panel

  • Introduction
  • Getting Started
  • Importing Content
  • Customizing Themes
  • Managing Content
  • Adding Administrators
  • Limiting Access
  • Recipe: Permissive Rooms
  • Recipe: Enable Scene Editor
Edit

How to back up your Hubs instance

These instructions are written for users, newbies, or non-developers.

Why would I need to create backups of my Hubs instance?

Backups allow you to have copies so that you can restore your Hubs instance in case anything goes wrong or shut down your Hubs instance and later set it up again like it was. This will save all of your instance, things like your avatars, and your projects in Spoke, your assets in Spoke, and will save pinned objects in room in the location where you pinned them.

A backup of your Hubs instance stores all of those files into one directory on your local computer that you can restore from at any time.

How to do a backup

  1. Open VS Code. Make sure you are in the community-edition folder. This is similar to the Beginner's Guide, Step 12h.

    Capture of VS Code, Terminal window, community-edition folder.

  2. Enter

    npm run backup

    a. In case you see Error: Cannot find module 'yaml', you need to do a clean install like you did in the Beginner’s Guide, Step 12i.

    Capture of VS Code, Terminal window, npm run backup returning an error of Cannot find module 'yaml'

    b. In the community-edition folder, you should see a folder called data_backups. That is where the backups are stored. There is one folder per backup. The backup is named data_backup with a time stamp which is a long number representing the date as time in seconds; the bigger the number, the later in time the backup.

    Capture of VS Code, File Explorer, data backups folder, data backup_175391XXXXX file

    In case you are confused, in the File Explorer, select the file using the secondary mouse button (right click) and choose Reveal. The modified date field should reflect the date when the backup was last modified.

  3. In our testing, this took five to 15 minutes, but if you have a lot of data or a slow Internet connection, it could take hours. When it is done, the terminal will be back in the state where it is ready to accept a command.

How to restore a backup

  1. Open VS Code. Make sure you are in the community-edition folder. This is similar to the Beginner's Guide, Step 12h.

    Capture of VS Code, Terminal window, community-edition folder.

  2. Enter

    npm run restore-backup

    However, you can restore a specific backup by specifying which backup for the process to use. In that case, you’ll add the actual file name like this: data_backup_<XXX>

    For example:

    npm run restore-backup data_backup_1753910374452

    Capture of VS Code, Terminal window, beginning restore. Text of deployment apps "coturn" and other apps deleted.

  3. With respect to size and internet connection speed, this will take a few minutes. In our testing, it took us between five and 30 minutes. With an instance with a lot of data or over a slow Internet connection, it could take hours.

  4. Once the script is finished, the terminal will display ‘instance restarted’.

    Capture of VS Code, Terminal window, text "instance restarted" highlighted.

Your instance is back up and running. All of your data should be there. Close VS Code.

Note: It will take a short while for everything to be restored. It takes a few minutes for Hubs to restart itself.

FAQs for Backups

Error codes

If VS Code returns an error script like this below, the solution is to re-run the last command (either the backup or the restore command) until it works.

Capture of Terminal window, error code repeating "Unhandled error"

← Troubleshooting and FAQsRegenerating SSL Certificates →
  • How to do a backup
  • How to restore a backup
  • FAQs for Backups
    • Error codes
Hubs
Docs
IntroductionSetting Up Your HubHubs FundamentalsSpoke DocumentationFor CreatorsFor DevelopersAdministration
Community
Discord Chat
More
HubsSpokeGitHub
Copyright © 2024–2025 Hubs Foundation. Hubs Documentation available under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.