Back up your flow
Keep a copy of your flow and restore it on the same or another server.
Everything you build is in one file: the flow file. It holds your nodes, connections, installed components and variables.
Download a copy from the designer
- Select Add (plus) in the toolbar.
- Select Download design.
The browser saves a file named Total.js LessCode.json. It has the same content as the flow file.
Copy the file on the server
For a source install, copy flowstreams/lesscode.flow from the LessCode folder.
For Docker, copy it out of the container:
docker cp lesscode:/www/.src/flowstreams/lesscode.flow ./lesscode.flowWait a few seconds after your last change before you copy, so the file has your latest work.
Restore a copy
1. Stop LessCode.
2. Replace flowstreams/lesscode.flow with your copy. A file from Download design works too: rename it to lesscode.flow.
3. Start LessCode and reload the designer.
For Docker, copy the file into the container and restart it:
docker cp ./lesscode.flow lesscode:/www/.src/flowstreams/lesscode.flow
docker restart lesscodeKeep only one .flow file in the flowstreams folder. The designer shows only one flow.