Space Operator
  • Welcome
  • Visual Builder
    • Flows
      • API Key & POST Request
      • WebSocket
        • Signature Requests
      • Nested Flows
      • Learn Solana
      • Add flows to your websites
      • Iterate with Localhost
    • Nodes
      • Web Assembly Nodes
        • space-cli
        • space-lib
        • Examples in Rust
          • Rectangle
          • Filter
          • Regex
        • Uploading WASM binary via UI
      • Native Nodes
        • Code Template
        • Node Definition
        • ValueSet
        • Submitting Native Nodes
        • Tracing
      • Mock Nodes
      • JS Node
      • API Input Node
  • Self-hosting
    • Docker Compose
    • Serving HTTPS
    • Lightsail Instance
    • Export data to your instance
  • FAQ
    • Servers
  • References
    • Flows
    • Flow Deployment
Powered by GitBook
On this page

Was this helpful?

  1. Self-hosting

Export data to your instance

PreviousLightsail InstanceNextServers

Last updated 1 year ago

Was this helpful?

Go to to create an API key for your user (if you don't have it yet).

Save your API key to the environment variable file using the following command. The file is located in ~/flow-backend/docker

cd ~/flow-backend/docker
echo APIKEY="<your_key>" >> .env

Run script to export data from our site and import it to the local server:

./import-data.ts

The script also needs SERVICE_ROLE_KEY variable from your .env file, which will be loaded automatically if you are in the same folder.

Exported data contains:

  • Public profile

  • Wallets

  • Flows

  • Nodes

  • KVStore data

  • API Keys

Currently, import will fail if there are conflict, to clean up data and import them again, run

delete from auth.users;
delete from nodes;

in you Supabase dashboard.

Settings -> API Key